You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2019/01/17 20:29: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 ]
Maxim Gekk updated SPARK-26618:
-------------------------------
Issue Type: Sub-task (was: Improvement)
Parent: SPARK-26651
> 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
> Priority: Minor
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org