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

from_utc_timestamp uses wrong timezone offset for dates prior to 1895-12-01

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • None
    • None
    • UDF
    • None

    Description

      from beeline
      select from_utc_timestamp('1895-12-01', 'Australia/Perth');

      ------------------------

      _c0

      ------------------------

      1895-12-01 08:00:00.0

      ------------------------

      This one is using correct offset of 8 hours.

      Same query with date as 1895-11-30

      select from_utc_timestamp('1895-11-30', 'Australia/Perth');
      ------------------------

      _c0

      ------------------------

      1895-11-30 07:43:24.0

      ------------------------

      Now the offset is 07:43:24.0

      Attachments

        Activity

          People

            Unassigned Unassigned
            anuragshekhar Anurag Shekhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: