[
https://issues.apache.org/jira/browse/IMPALA-11368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zoltán Borók-Nagy updated IMPALA-11368:
---------------------------------------
Description:
Repro:
{noformat}
[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
{noformat}
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.
was:
Repro:
{noformat}
[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';
Query: select * from ice_t for system_time as of '2022-06-17 11:00:00'
Query submitted at: 2022-06-17 13:36:03 (Coordinator:
http://boroknagyz-Desktop:25000)
ERROR: IllegalArgumentException: Cannot find a snapshot older than 2022-06-17
09:00:00.000
{noformat}
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.
> Iceberg time-travel error message shows timestamp in UTC
> --------------------------------------------------------
>
> Key: IMPALA-11368
> URL: https://issues.apache.org/jira/browse/IMPALA-11368
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Reporter: Zoltán Borók-Nagy
> Priority: Major
> Labels: impala-iceberg, ramp-up
>
> Repro:
> {noformat}
> [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
> {noformat}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]