gaborkaszab commented on code in PR #16425:
URL: https://github.com/apache/iceberg/pull/16425#discussion_r4781566007


##########
format/spec.md:
##########
@@ -1434,11 +1437,12 @@ When expiring snapshots, retention policies in table 
and snapshot references are
 
 #### Deleting Files
 
-A file may be deleted from the file system when the snapshot in which it was 
deleted is garbage collected, assuming that the file is not live in any 
remaining snapshot [1].
+A file may be deleted from the file system when the snapshot in which it was 
deleted is garbage collected, assuming that the file is not live in any 
remaining snapshot [1], [2]. A Puffin file that stores deletion vectors is live 
while any of its deletion vectors is live.
 
 Notes:
 
 1. Technically, data files can be deleted when the last snapshot that contains 
the file as "live" data is garbage collected. But this is harder to detect and 
requires finding the diff of multiple snapshots. When all snapshots are 
ancestors of a single branch, it is easier to track what files are deleted in a 
snapshot and delete them when that snapshot expires.  It is not recommended to 
add a deleted file back to a table. Adding a deleted file can lead to edge 
cases where incremental deletes can break table snapshots.
+2. Column files and deletion vector files are referenced from data file and 
leaf manifest metadata and are not tracked by their own manifest entries. Such 
a file is live in a snapshot if a live entry in that snapshot references it, 
including through a leaf manifest's column files. It may be deleted when it is 
not live in any remaining snapshot.

Review Comment:
   I think the intention here was that we express the DVs directly referenced 
from data or leaf manifest files. That way we could avoid mentioning any 
versions.



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