adiranjan25 commented on issue #19195: URL: https://github.com/apache/iceberg/issues/19195#issuecomment-7269652176
Hi @Yibo-Dong, Thanks for reporting this correctness issue and providing a clear reproduction. I'm interested in investigating and contributing a fix. I've prepared a dedicated worktree against the latest upstream `main` (`f063ce667cb76cacecb28ea1836d691541e01c00`) using Java 17. From my initial code review, Spark's dynamic `INSERT OVERWRITE` delegates to `ReplacePartitions`, which tracks replacement partitions using the partition spec ID and partition values. A partition-field rename creates a new partition spec, so I'm investigating whether the replacement operation fails to match existing data files written under the previous spec, even when the partition values and transforms are semantically equivalent. I'll focus on: 1. Adding a regression test that reproduces the reported duplicate rows. 2. Tracing partition replacement and manifest filtering across partition-spec evolution. 3. Ensuring any correction preserves overwrite semantics without deleting unrelated partitions. 4. Validating the fix against existing partition evolution, dynamic overwrite, and concurrency tests. I'll start with the regression test and share the results before proposing production changes. Thanks, Aditya Ranjan -- 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]
