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

Iceberg time-travel error message shows timestamp in UTC

    XMLWordPrintableJSON

Details

    • ghx-label-12

    Description

      Repro:

      [localhost:21050] default> describe history ice_t;
      +-------------------------------+---------------------+--------------------+---------------------+
      | creation_time                 | snapshot_id         | parent_id          | is_current_ancestor |
      +-------------------------------+---------------------+--------------------+---------------------+
      | 2022-06-17 11:18:08.893000000 | 860514146484624738  | NULL               | TRUE                |
      | 2022-06-17 11:18:09.866000000 | 3753528011626879929 | 860514146484624738 | TRUE                |
      +-------------------------------+---------------------+--------------------+---------------------+
      
      [localhost:21050] default> select * from ice_t for system_time as of '2022-06-17 11:00:00';
      ERROR: IllegalArgumentException: Cannot find a snapshot older than 2022-06-17 09:00:00.000
      

      In the FOR SYSTEM_TIME AS OF clause we expect timestamps in the local timezone, while the error message shows the timestamp in UTC timezone. It should also use the local timezone instead.

      Attachments

        Activity

          People

            lipenglin Li Penglin
            boroknagyz Zoltán Borók-Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: