zeroshade commented on code in PR #2681:
URL: https://github.com/apache/iceberg-go/pull/2681#discussion_r4722056908


##########
table/rewrite_files.go:
##########
@@ -304,13 +280,19 @@ func (r *RewriteFiles) ApplyResult(gr 
CompactionGroupResult) *RewriteFiles {
 // Commit stages the rewrite snapshot on the underlying transaction.
 // The catalog commit happens once, later, at [Transaction.Commit] time.
 //
+// To validate position-delete removal candidates, Commit reads manifests 
across
+// the staging snapshot and may also read partition-scoped position-delete 
files.

Review Comment:
   This paragraph and the one at L294-295 say the same thing, and both say 
Commit opens delete files. It doesn't: candidates are matched through 
`referenced_data_file` or the file-path bounds, and only manifests are read 
(data manifests too when a candidate is partition-scoped). My earlier comment 
was wrong about that. Could we keep one copy, and drop L293-295?
   
   ```suggestion
   // To check position-delete removal candidates, Commit reads every delete
   // manifest in the staging snapshot, and every data manifest when a candidate
   // is partition-scoped.
   ```



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