You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/12/04 04:23:00 UTC

[jira] [Commented] (SPARK-33658) Suggest using datetime conversion functions for invalid ANSI casting

    [ https://issues.apache.org/jira/browse/SPARK-33658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243690#comment-17243690 ] 

Apache Spark commented on SPARK-33658:
--------------------------------------

User 'gengliangwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/30603

> Suggest using datetime conversion functions for invalid ANSI casting
> --------------------------------------------------------------------
>
>                 Key: SPARK-33658
>                 URL: https://issues.apache.org/jira/browse/SPARK-33658
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>
> In ANSI mode, explicit cast between DateTime types and Numeric types is not allowed.
> As of now, we have introduced new functions UNIX_SECONDS/UNIX_MILLIS/UNIX_MICROS/UNIX_DATE/DATE_FROM_UNIX_DATE, we can show suggestions to users so that they can complete these type conversions precisely and easily in ANSI mode.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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