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

Compute stats fails with invalid timezone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Workaround
    • Impala 3.3.0
    • Impala 4.0.0
    • Backend
    • Hide
      Workaround:
      Set the TIMEZONE query option or the TZ environment variable to override this.
      Show
      Workaround: Set the TIMEZONE query option or the TZ environment variable to override this.
    • ghx-label-12

    Description

      On my Ubuntu machine with latest Impala build I get the following error:

      [localhost:21000] tpch> compute stats lineitem;
      Query: compute stats lineitem
      ERROR: Invalid timezone name 'posixrules'. 

      This causes a bunch of unit tests that rely on stats to fail.

      After setting the TIMEZONE explicitly, this works:

      localhost:21000] tpch> set TIMEZONE=America/Los_Angeles;
      TIMEZONE set to America/Los_Angeles
      [localhost:21000] tpch> compute stats lineitem;
      Query: compute stats lineitem
      +------------------------------------------+
      | summary                                  |
      +------------------------------------------+
      | Updated 1 partition(s) and 16 column(s). |
      +------------------------------------------+
      

      My /etc/timezone has a valid timezone:

      $ cat /etc/timezone
      America/New_York
      

      Attachments

        Activity

          People

            amansinha Aman Sinha
            amansinha Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: