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

Incorrect timezone conversion with 'from_utc_timestamp' function in Impala

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 1.3.1, Impala 1.4
    • Impala 1.4
    • Backend
    • None

    Description

      Europe/Moscow' timezone is GMT+4 (no daylight time saving since 20111),
      so expect to see "2014-02-14 20:21:01" as the result of the second query.

      select from_utc_timestamp(cast(1392394861 as timestamp), 'Europe/London');
      Query: select from_utc_timestamp(cast(1392394861 as timestamp), 'Europe/London')
      --------------------------------------------------------------------

      from_utc_timestamp(cast(1392394861 as timestamp), 'europe/london')

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

      2014-02-14 16:21:01

      --------------------------------------------------------------------
      Returned 1 row(s) in 0.21s

      select from_utc_timestamp(cast(1392394861 as timestamp), 'Europe/Moscow');
      Query: select from_utc_timestamp(cast(1392394861 as timestamp), 'Europe/Moscow')
      --------------------------------------------------------------------

      from_utc_timestamp(cast(1392394861 as timestamp), 'europe/moscow')

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

      2014-02-14 19:21:01

      --------------------------------------------------------------------
      Returned 1 row(s) in 0.12s

      Attachments

        Activity

          People

            Unassigned Unassigned
            lv Lars Volker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: