adiranjan25 commented on issue #19193: URL: https://github.com/apache/iceberg/issues/19193#issuecomment-7270850071
I have completed the initial implementation and local validation of the reported changelog scan correctness issue. The regression reproduced the incorrect combined-query result across all four tested catalog configurations: Hive, Hadoop, REST, and SparkSessionCatalog. The root cause is that `SparkChangelogScan` uses the originally configured snapshot IDs for scan equality rather than the resolved snapshot boundaries. Additionally, the empty-scan state is not represented in scan identity. The proposed correction passes the resolved snapshot boundaries into `SparkChangelogScan` and includes the immutable empty-scan state consistently in `equals()` and `hashCode()`. I also extended the regression coverage to include different nonempty timestamp windows and equivalent timestamp-based and snapshot-ID-based windows. **Validation results:** - Before fix: 4 regression failures. - After fix: all 4 regression cases passed. - Full changelog procedure suite: 92 tests passed, with zero failures, errors, or skipped tests. - Checkstyle, Spotless, and diff checks passed. The implementation is available in draft PR #PR_NUMBER for maintainer review. I would appreciate feedback on the proposed scan identity semantics and whether the correction should be extended to other supported Spark versions. -- 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]
