You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/09/08 04:28:00 UTC

[jira] [Reopened] (SPARK-28429) SQL Datetime util function being casted to double instead of timestamp

     [ https://issues.apache.org/jira/browse/SPARK-28429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon reopened SPARK-28429:
----------------------------------

> SQL Datetime util function being casted to double instead of timestamp
> ----------------------------------------------------------------------
>
>                 Key: SPARK-28429
>                 URL: https://issues.apache.org/jira/browse/SPARK-28429
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Dylan Guedes
>            Priority: Major
>
> In the code below, 'now()+'100 days' are casted to double and then an error is thrown:
> {code:sql}
> CREATE TEMP VIEW v_window AS
> SELECT i, min(i) over (order by i range between '1 day' preceding and '10 days' following) as min_i
> FROM range(now(), now()+'100 days', '1 hour') i;
> {code}
> Error:
> {code:sql}
> cannot resolve '(current_timestamp() + CAST('100 days' AS DOUBLE))' due to data type mismatch: differing      types in '(current_timestamp() + CAST('100 days' AS DOUBLE))' (timestamp and double).;{code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org