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

   ### Summary
   
   Fixes #16662.
   
   `rewrite_table_path` could queue deleted position delete files for physical 
rewrite. If those files had already been removed (for example after 
`rewrite_position_delete_files` and `expire_snapshots`), the rewrite would fail 
with `FileNotFoundException`.
   
   This change only adds position delete files to `toRewrite()` when the 
manifest entry is live and part of the target snapshot set. Deleted entries are 
still preserved in the rewritten manifest metadata, but are no longer scheduled 
for physical rewrite.
   
   ### Testing
   
   ```bash
   ./gradlew :iceberg-core:test --tests 
"org.apache.iceberg.TestRewriteTablePathUtil"
   ```
   
   Added a regression test covering a manifest containing both a deleted and a 
live position delete file, verifying that only the live file is queued for 
rewrite.
   


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