Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interaction with Snapshot

...

  1. When creating savepoint, we will do a full-compact and pick the compacted snapshot to save.
  2. 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. 

...

  1. 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
languagesql
firstline1
savepoint_id BIGINT
schema_id BIGINT
save_time BIGINT
record_count BIGINT 

Usage

...

Time Travel to Savepoint (Batch Reading)

...