spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Li (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-22894) DateTimeOperations should accept SQL like string type
Date Tue, 26 Dec 2017 17:42:00 GMT

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

Xiao Li resolved SPARK-22894.
-----------------------------
       Resolution: Fixed
         Assignee: Yuming Wang
    Fix Version/s: 2.3.0

> DateTimeOperations should accept SQL like string type
> -----------------------------------------------------
>
>                 Key: SPARK-22894
>                 URL: https://issues.apache.org/jira/browse/SPARK-22894
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Yuming Wang
>            Assignee: Yuming Wang
>             Fix For: 2.3.0
>
>
> {noformat}
> spark-sql> SELECT '2017-12-24' + interval 2 months 2 seconds;
> Error in query: cannot resolve '(CAST('2017-12-24' AS DOUBLE) + interval 2 months 2 seconds)'
due to data type mismatch: differing types in '(CAST('2017-12-24' AS DOUBLE) + interval 2
months 2 seconds)' (double and calendarinterval).; line 1 pos 7;
> 'Project [unresolvedalias((cast(2017-12-24 as double) + interval 2 months 2 seconds),
None)]
> +- OneRowRelation
> spark-sql> 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message