THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Query the data for a past moment.
Code Block | ||
---|---|---|
| ||
-- SpecifyTo specify a specific time, use the following syntax: SELECT [column_name(s)] FROM [table_name] FOR SYSTEM_TIME AS OF TIMESTAMP '[timestamp]' -- For example: SELECT * FROM paimon_tb FOR SYSTEM_TIME AS OF TIMESTAMP '2023-04-27 00:00:00' -- SpecifyTo specify a constant expression, use the following syntax: SELECT [column_name(s)] FROM [table_name] FOR SYSTEM_TIME AS OF [expression] -- For example: SELECT * FROM paimon_tb FOR SYSTEM_TIME AS OF TIMESTAMP '2023-04-27 00:00:00' - INTERVAL '1' DAY |
...
Code Block | ||
---|---|---|
| ||
-- By default, if no time is specified, the system will query data from the latest timestamp. SELECT [column_name(s)] FROM [table_name] -- For example: SELECT * FROM paimon_tb; -- Specify a current-time expression SELECT [column_name(s)] FROM [table_name] FOR SYSTEM_TIME AS OF [current_time expression]; -- For example: SELECT * FROM paimon_tb FOR SYSTEM_TIME AS OF CURRENT_TIMESTAMP; |
...