shangeyao opened a new pull request, #16755: URL: https://github.com/apache/iceberg/pull/16755
### 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 gates `result.toRewrite().add()` on `entry.isLive()`, so that only live position delete files are scheduled for physical rewrite. Deleted entries are still preserved in the rewritten manifest metadata. ### Testing ```bash ./gradlew :iceberg-core:test --tests "org.apache.iceberg.TestRewriteTablePathUtil" ``` -- 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]
