Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21094

Store TIMESTAMP WITH LOCAL TIME ZONE in UTC instead of writer's time zone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Hive
    • None

    Description

      TIMESTAMP WITH LOCAL TIME ZONE (aka TIMESTAMPTZ) is stored in writer's local time, and the writer's zone is stored with it. When reading, the timestamp in reader local time + reader zone is displayed. This is misleading for the user, since it looks like all the data was written in the reader's time zone.

      TIMESTAMPTZ should be stored in UTC time and be displayed in reader local time (as it was before) but should not display the reader's time zone.

      This was discussed in the community doc Consistent timestamp types in Hadoop SQL engines

      Attachments

        1. HIVE-21094.1.patch
          6 kB
          Karen Coppage

        Issue Links

          Activity

            People

              klcopp Karen Coppage
              klcopp Karen Coppage
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: