adiranjan25 commented on issue #19195: URL: https://github.com/apache/iceberg/issues/19195#issuecomment-7269690505
Quick update on my investigation: I have independently reproduced the reported behavior at the Iceberg Core level against upstream main (`f063ce667cb76cacecb28ea1836d691541e01c00`). I added two parameterized regression tests to `TestReplacePartitions`: - `testReplacePartitionAfterRename` - `testConcurrentAppendConflictAfterPartitionRename` Both tests were executed against format versions 1, 2, and 3, covering both main and secondary branches. All 12 test cases failed. The investigation demonstrates two related correctness failures: 1. Partition replacement does not remove the matching data file written under the original partition spec after a partition-field rename. 2. Concurrent append conflict validation does not detect a matching partition written under the original spec. The underlying issue appears to be that `BaseReplacePartitions` registers replacement partitions using the incoming file's spec ID, while equivalent partitions under historical spec IDs are not considered. I also checked `PartitionSpec.compatibleWith()`. Since it compares partition field names and is used by table metadata management, changing its existing semantics globally may not be appropriate. I'm investigating a narrowly scoped correction that recognizes rename-only equivalent partition layouts while preserving existing behavior for genuinely different partition transforms and layouts. The correction should address both manifest filtering and conflict validation. I'll share the implementation and validation results once the additional safety checks are complete. 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]
