smallx commented on pull request #3844:
URL: https://github.com/apache/iceberg/pull/3844#issuecomment-1023976437


   Good idea, I add `truncate-snapshot-id` to `SnapshotSummary` to record 
truncate-before snapshot.
   
   **Case 1**: We will delete ANY files in snapshot B and D.
   ```
   A -- B -truncate- C (empty snapshot, truncate-snapshot-id=B) -- D -truncate- 
E (empty snapshot, truncate-snapshot-id=D)
   ```
   
   **Case 2**: We will ignore truncate snapshot C.
   ```
   A -- B -- D -- E (current snapshot)
        |
        `truncate- C (empty snapshot, truncate-snapshot-id=B)
   ```


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to