HennesyChihiro opened a new pull request, #15188: URL: https://github.com/apache/iceberg/pull/15188
Problem When writing historical dates (pre-1582) to ORC files in Spark, there is a discrepancy between the written data and the collected metrics due to Julian-Gregorian calendar rebase issues. This causes consistency checks to fail. Modification Updated GenericOrcWriters.java to ensure dates are correctly handled during the write process. Adjusted OrcMetrics.java to align metrics collection with the corrected writing logic, ensuring the min/max values reflect the actual data on disk. Verification Results Ran ./gradlew :iceberg-orc:test and confirmed that the specific test cases for historical dates now pass without metric mismatches. Fixes #14214 -- 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]
