mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-14500: Clarify usage of SYSTEM_VERSION
Clarifies that SYSTEM_VERSION in Iceberg queries refers to a snapshot id. Change-Id: I64c4dc9ce82af320602f8de7c435242aa2f90d77 Reviewed-on: http://gerrit.cloudera.org:8080/23543 Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Quanlong Huang <huangquanlong@gmail.com>
This commit is contained in:
committed by
Quanlong Huang
parent
7e34cabed7
commit
1a74ee03f3
@@ -698,8 +698,8 @@ OPTIMIZE TABLE [<varname>db_name</varname>.]<varname>table_name</varname> [FILE_
|
||||
</p>
|
||||
|
||||
<p>
|
||||
We can use the <codeph>FOR SYSTEM_TIME AS OF</codeph> and <codeph>FOR SYSTEM_VERSION AS OF</codeph>
|
||||
clauses in <codeph>SELECT</codeph> queries, e.g.:
|
||||
We can use the clauses <codeph>FOR SYSTEM_TIME AS OF</codeph> with a timestamp and
|
||||
<codeph>FOR SYSTEM_VERSION AS OF</codeph> with a snapshot id in <codeph>SELECT</codeph> queries, e.g.:
|
||||
<codeblock>
|
||||
SELECT * FROM ice_t FOR SYSTEM_TIME AS OF '2022-01-04 10:00:00';
|
||||
SELECT * FROM ice_t FOR SYSTEM_TIME AS OF now() - interval 5 days;
|
||||
|
||||
Reference in New Issue
Block a user