yuzelin opened a new issue, #1269:
URL: https://github.com/apache/incubator-paimon/issues/1269

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Motivation
   
   Paimon's snapshots can support to query historical data without cost of 
merging. Paimon's data storage will generate snapshot for each commit, so we 
can find historical data at any snapshot (usually called time travel query in 
SQL). 
   
   But in most scenarios, a table will generate too many snapshots, so Paimon 
lets users to configure snapshot expiration time to clean old, unused 
snapshots. Thus the snapshot of a specified time point may have expired when 
user want to query it.
   
   To solve this problem, we propose to introduce a new mechanism `Tag`. A tag 
is created from snapshot and can keep longer. The purposes of tag are:
   
   - Fault recovery (or we can say disaster recovery). Users can ROLL BACK to a 
tag if needed. If user rollbacks to a tag, the table will hold the data in the 
tag and the data committed  after the tag will be deleted. In this scenario the 
tag is like backup, but more lightweight because the tag only record the 
metadata of data files instead of copying them.
   
   - Record versions of data at a longer interval (typically daily or weekly). 
With tag, user can query the old data in batch mode. In this scenario the tag 
is like long-lived snapshot.
   
   ### Solution
   
   Design: https://cwiki.apache.org/confluence/x/NxE0Dw
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to