Ankitkj1999 opened a new pull request, #18941: URL: https://github.com/apache/iceberg/pull/18941
Fixes #18940 Adjusting open comparison boundaries in ProjectionUtil by computing boundary - 1 and boundary + 1 causes signed arithmetic overflow at extreme integer and long bounds (e.g. Integer.MIN_VALUE - 1 wraps to positive Integer.MAX_VALUE), emitting invalid projected predicates that bypass partition pruning. Check for boundary bounds in truncateInteger, truncateIntegerStrict, truncateLong, and truncateLongStrict, returning null when the adjusted bound cannot be represented. Test plan: Added boundary projection test cases to TestTruncatesProjection for integer and long partition transforms. --- **AI Disclosure** - Model: Gemini 2.5 Pro - Platform/Tool: Antigravity - Human Oversight: [unknown - human to fill in] - Prompt Summary: Prevent integer and long boundary arithmetic overflow in ProjectionUtil projection transforms. -- 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]
