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

[jira] [Updated] (SPARK-26618) Make typed Timestamp/Date literals consistent to casting

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

Wenchen Fan updated SPARK-26618:
--------------------------------
    Labels: correctness  (was: )

> Make typed Timestamp/Date literals consistent to casting
> --------------------------------------------------------
>
>                 Key: SPARK-26618
>                 URL: https://issues.apache.org/jira/browse/SPARK-26618
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>              Labels: correctness
>             Fix For: 3.0.0
>
>
> Currently values of typed literals TIMESTAMP and DATE are parsed to desired values by Timestamp.valueOf and Date.valueOf. This restricts date and timestamp pattern, and makes inconsistent to casting to TimestampType/DateType. Also using Timestamp.valueOf and Date.valueOf assumes hybrid calendar while parsing textual representation of timestamps/dates. This should be fixed by re-using cast functionality.



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