fallintoplace opened a new pull request, #2893: URL: https://github.com/apache/iceberg-rust/pull/2893
## Which issue does this PR close? N/A. Found while auditing truncate transforms and predicate projection. ## What changes are included in this PR? Decimal truncate operations rebuilt transformed values as scale-0 decimals with maximum precision. That changed the literal type and made projected predicates display raw mantissas, such as 10000 instead of 100.00. This PR preserves the source precision and scale when: - transforming decimal literals with truncate - adjusting inclusive projection boundaries - incrementing or decrementing strict projection boundaries The projected literals now retain the decimal type of the source expression. ## Are these changes tested? Yes. Regression coverage verifies that decimal truncation and boundary adjustment preserve the original type. Existing strict and inclusive projection tests also verify scaled predicate values. Validated with: - cargo test -p iceberg --lib - cargo clippy -p iceberg --lib -- -D warnings -- 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]
