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/14 21:14:00 UTC
[jira] [Created] (SPARK-26618) Make typed Timestamp/Date literals
consistent to casting
Maxim Gekk created SPARK-26618:
----------------------------------
Summary: Make typed Timestamp/Date literals consistent to casting
Key: SPARK-26618
URL: https://issues.apache.org/jira/browse/SPARK-26618
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 2.4.0
Reporter: Maxim Gekk
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