You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2021/07/22 07:12:03 UTC

[jira] [Updated] (SPARK-35854) Improve the error message of to_timestamp_ntz with invalid format pattern

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

Gengliang Wang updated SPARK-35854:
-----------------------------------
        Fix Version/s:     (was: 3.2.0)
                       3.3.0
    Affects Version/s:     (was: 3.2.0)
                       3.3.0

> Improve the error message of to_timestamp_ntz with invalid format pattern
> -------------------------------------------------------------------------
>
>                 Key: SPARK-35854
>                 URL: https://issues.apache.org/jira/browse/SPARK-35854
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>             Fix For: 3.3.0
>
>
> As discussed in https://github.com/apache/spark/pull/32995/files#r655148980, there is an error message saying
> "You may get a different result due to the upgrading of Spark 3.0: Fail to recognize 'yyyy-MM-dd GGGGG' pattern in the DateTimeFormatter. 1) You can set spark.sql.legacy.timeParserPolicy to LEGACY to restore the behavior before Spark 3.0"
> This is not true for function to_timestamp_ntz, which only uses the Iso8601TimestampFormatter and added since Spark 3.2. We should improve it.



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