Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-97

Impala returns "1970-01-01 00:00:00" in from_unixtime(0) , Hive returns "1970-01-01 09:00:00" in Japan

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.6
    • Impala 2.2
    • None
    • None

    Description

      Incompatibility between Impala and Hive in Japan( or other timezones except for UTC):

      Impala:

      select from_unixtime(0);
      Query: select from_unixtime(0)
      Query finished, fetching results ...
      1970-01-01 00:00:00
      Returned 1 row(s) in 0.01s
      

      Hive:

      select from_unixtime(0) from tmp;         
      <snip>
      OK
      1970-01-01 09:00:00
      

      This is because Hive returns as current system time zone(GMT+9), but Impala returns as UTC.

      Attachments

        Issue Links

          Activity

            People

              caseyc casey
              showyou Yuki Yoi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: