rdblue opened a new pull request, #19129:
URL: https://github.com/apache/iceberg/pull/19129

   This refactors `MergingSnapshotProducer` and `SnapshotProducer` to extract 
v3 logic into a `ManifestListProducer` class. There were also quite a few 
utilities (like creating a manifest file name) that are specific to v3 that 
were moved into the new `ManifestWriteManager`.
   
   `MergingSnapshotProducer` is still responsible for producing snapshot 
summaries and handling `failAnyDelete` and `failMissingDeleteFiles`, so the 
`ManifestListProducer` provides lists of files that were actually deleted or 
missing.
   
   In refactoring, I noticed that `RewriteFiles` allows the data sequence 
number to be set multiple times and handles data files and delete files 
inconsistently. I added a check (and a test) to ensure only one data sequence 
number is set and switched to per-file sequence number to be consistent. A 
Delegate class was also added to make this consistent.
   
   Test plan:
   - Add a test for rewrite files with multiple data sequence numbers
   - Make sure all existing tests are passing, since this is a refactor


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