[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16925059#comment-16925059 ] Hyukjin Kwon commented on SPARK-28429: -- So, does this JIRA target conversions from a string literal to any data type? > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16925058#comment-16925058 ] Hyukjin Kwon commented on SPARK-28429: -- [~yumwang], please update JIRA together when you close a PR. > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16887673#comment-16887673 ] Yuming Wang commented on SPARK-28429: - I'm working on. > 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 (v7.6.14#76016) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org