adiranjan25 commented on issue #19190:
URL: https://github.com/apache/iceberg/issues/19190#issuecomment-7264213265

   Thanks @Yibo-Dong for reporting this issue and providing a detailed 
reproduction.
   
   I'd like to investigate this and contribute a fix. The reported behavior 
raises an important correctness concern, particularly during v2-to-v3 table 
migration, where rewriting position delete files into deletion vectors must 
preserve all applicable deletes.
   
   My proposed approach is to:
   
   - Reproduce the reported behavior against the latest `main` using Spark 3.5.
   - Investigate position delete file selection, rewrite grouping, and deletion 
vector generation.
   - Determine how non-selected position delete files are handled when a 
deletion vector is created for the same data file.
   - Develop a targeted fix that preserves existing deletion semantics without 
unnecessarily expanding the rewrite scope.
   - Add regression coverage for partial delete-file selection, mixed position 
deletes and deletion vectors, and row-count consistency before and after the 
rewrite.
   
   I'll also evaluate the implications for existing v3 tables and ensure that 
the fix does not introduce regressions in the position-delete rewrite workflow.
   
   If nobody is currently working on this, I'd be happy to take ownership. I'll 
share my findings and submit a PR once the implementation and regression tests 
are validated.


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