adiranjan25 commented on PR #19149: URL: https://github.com/apache/iceberg/pull/19149#issuecomment-7204368502
Thanks @timothyw553 for the detailed review and for identifying the underlying schema-binding issue. I've revised the implementation to address your feedback: - Updated `SnapshotScan.specs()` to use schema identity rather than snapshot identity when determining whether historical partition specs need to be rebound. - Preserved the planned `task.spec()` in `SparkPartitioningAwareScan` across Spark 3.5, 4.0, 4.1, and 4.2. - Removed the previous `PartitionUtil` fallback and corresponding `BaseReader` changes, as they are no longer needed for the reproduced scenarios. - Added core regression coverage for tagged current snapshots, partition source column removal, and INT-to-LONG promotion, including validation of decoded partition value types. - Strengthened the Spark regression tests to verify `KeyGroupedPartitioning` and `UnknownPartitioning` for the respective projections, as well as the actual partition key representation and value. I also confirmed that the new tagged-current-snapshot regression fails against the original implementation across Iceberg format versions V1, V2, and V3. Local validation passed for Iceberg Core and all four Spark versions, including the targeted regression tests, Spotless, CheckstyleMain, and CheckstyleTest. Appreciate your guidance. The revised approach addresses the issue at the scan-planning level rather than compensating for it during data reading. The PR is ready for another review. -- 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]
