adiranjan25 opened a new pull request, #19201: URL: https://github.com/apache/iceberg/pull/19201
## Summary Addresses #19190. When rewriting position delete files after upgrading an Iceberg table from v2 to v3, size-based selection can exclude applicable position deletes. Creating a deletion vector from an incomplete set of deletes can cause previously deleted rows to become visible again. ## Proposed approach For v3 tables, group position delete tasks within each selected partition without applying the existing size-based filtering and grouping rules. Preserve the existing planning behavior for v2 tables. ## Regression coverage Added a regression test reproducing partial position delete selection during v2-to-v3 migration. Before the change: - Expected surviving rows: 998 - Actual surviving rows: 1998 - Four catalog configurations failed. After the change: - Surviving rows: 998 - Previously deleted rows remain excluded. - All four catalog configurations passed. ## Validation Spark 3.5, Java 17: - Core planner: 13 tests passed. - Spark rewrite action: 19 tests passed. - Spark rewrite procedure: 36 tests passed. - Total: 68 passed, zero failures or skips. - Spotless formatting completed successfully. ## Design considerations This is a conservative correctness-first prototype. Feedback is requested on preserving deletion vector completeness while respecting rewrite group size limits. Additional validation is needed for mixed existing DVs, partition evolution, concurrent writes, partial progress, and large partitions. -- 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]
