THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Interaction with Snapshot
...
- When creating savepoint, we will do a full-compact and pick the compacted snapshot to save.
- When expiring snapshot, Paimon will check whether the data files are used by living snapshots. If not, they will be deleted. After we introduce savepoint, we should also check if the data files are used by savepoints.
...
- When deleting savepoint, we will check and delete unused datafiles (like we expire snapshot).
System Table
We suppose to introduce a system table `SavepointsTable`. The schema is:
Code Block | ||||
---|---|---|---|---|
| ||||
savepoint_id BIGINT schema_id BIGINT save_time BIGINT record_count BIGINT |
Usage
...
Time Travel to Savepoint (Batch Reading)
...