You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/12/23 09:05:18 UTC

[GitHub] [flink-table-store] zjureel commented on a diff in pull request #410: [FLINK-30247] Introduce time travel reading for table store

zjureel commented on code in PR #410:
URL: https://github.com/apache/flink-table-store/pull/410#discussion_r1056160599


##########
docs/content/docs/how-to/querying-tables.md:
##########
@@ -180,3 +180,13 @@ SELECT * FROM MyTable$audit_log;
 3 rows in set
 */
 ```
+
+## Time Travel Reading
+You can read snapshot specific by commit time or snapshot id from a table.
+```sql
+-- Read snapshot specified by commit time.
+SELECT * FROM T /*+ OPTIONS('scan.timestamp-millis'='121230')*/;
+
+-- Read snapshot specified by snapshot id.
+SELECT * FROM T /*+ OPTIONS('scan.snapshot-id'='12')*/;
+```

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org