hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-8746) ORC timestamp columns are sensitive to daylight savings time
Date Fri, 20 Mar 2015 22:04:38 GMT

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

Prasanth Jayachandran updated HIVE-8746:
----------------------------------------
    Attachment: HIVE-8746.2.patch

Addressed [~owen.omalley]'s review comments and updated golden files to reflect the file size
change.

> ORC timestamp columns are sensitive to daylight savings time
> ------------------------------------------------------------
>
>                 Key: HIVE-8746
>                 URL: https://issues.apache.org/jira/browse/HIVE-8746
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Owen O'Malley
>            Assignee: Prasanth Jayachandran
>         Attachments: HIVE-8746.1.patch, HIVE-8746.2.patch
>
>
> Hive uses Java's Timestamp class to manipulate timestamp columns. Unfortunately the textual
parsing in Timestamp is done in local time and the internal storage is in UTC.
> ORC mostly side steps this issue by storing the difference between the time and a base
time also in local and storing that difference in the file. Reading the file between timezones
will mostly work correctly "2014-01-01 12:34:56" will read correctly in every timezone.
> However, when moving between timezones with different daylight saving it creates trouble.
In particular, moving from a computer in PST to UTC will read "2014-06-06 12:34:56" as "2014-06-06
11:34:56".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message