laskoviymishka commented on code in PR #2681:
URL: https://github.com/apache/iceberg-go/pull/2681#discussion_r4731843326
##########
table/rewrite_data_files.go:
##########
@@ -217,10 +214,9 @@ type RewriteDataFilesOptions struct {
//
// Use [compaction.CollectDeadEqualityDeletesWithSpecs] and
// [compaction.CollectDeadPositionDeletes] to compute this list
- // from the current snapshot. Position deletes attached to
- // rewritten tasks are already removed by the per-group staging;
- // listing them again here is harmless (each file is removed and
- // counted once).
+ // from the current snapshot. If an extra also appears as a worker
+ // candidate, the automatic check decides whether it can be removed.
Review Comment:
Could we add a test where an `ExtraDeleteFilesToRemove` entry is also a
worker candidate that `Commit` keeps for a survivor? The skip at
[L546-L564](https://github.com/apache/iceberg-go/blob/572d96edbc9d0b2d98f9882c959b4f6620e63791/table/rewrite_data_files.go#L546-L564)
hands it to the automatic check, so the explicit removal doesn't happen. On
`main` candidates were always removed, and none of the three existing
`ExtraDeleteFilesToRemove` tests covers this new outcome.
--
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]