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/04/03 19:23:00 UTC

[jira] [Created] (SPARK-27357) Convert timestamps to/from dates independently from time zones

Maxim Gekk created SPARK-27357:
----------------------------------

             Summary: Convert timestamps to/from dates independently from time zones
                 Key: SPARK-27357
                 URL: https://issues.apache.org/jira/browse/SPARK-27357
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Maxim Gekk


Both Catalyst's types TIMESTAMP and DATE internally represent time intervals since epoch in UTC time zone. The TIMESTAMP type contains number of microseconds since epoch, and DATE is number of days since epoch (00:00:00  1 January 1970). As a consequence of that, the conversion should be independent from session or local time zone. The ticket aims to fix current behavior and makes the conversion independent from time zones.



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