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/05/29 08:22:00 UTC

[jira] [Commented] (SPARK-31867) Fix silent data change for datetime formatting

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

Apache Spark commented on SPARK-31867:
--------------------------------------

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

> Fix silent data change for datetime formatting 
> -----------------------------------------------
>
>                 Key: SPARK-31867
>                 URL: https://issues.apache.org/jira/browse/SPARK-31867
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Kent Yao
>            Priority: Blocker
>
> {code:java}
> spark-sql> select from_unixtime(1, 'yyyyyyyyyyy-MM-dd');
> NULL
> spark-sql> set spark.sql.legacy.timeParserPolicy=legacy;
> spark.sql.legacy.timeParserPolicy	legacy
> spark-sql> select from_unixtime(1, 'yyyyyyyyyyy-MM-dd');
> 00000001970-01-01
> spark-sql>
> {code}



--
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