advancedxy opened a new pull request, #3243:
URL: https://github.com/apache/iceberg-rust/pull/3243

   This problem is identified during the internal implementation and review of 
#2456, which we noticed the problem when added truncated related filters and 
rejects binary input.
   
   ## Which issue does this PR close?
   No issue is currently linked.
   
   ## What changes are included in this PR?
   The Arrow array path already preserves decimal precision and scale and 
supports binary truncation. The literal path instead reset decimal scale to 
zero and rejected binary values. For example, truncate[50](10.65) returned 1050 
instead of 10.50.
   
   Align literal truncation with the Arrow array path: preserve the source 
decimal precision and scale, and return the first W bytes of binary values, or 
the entire value when shorter. Decimal projection boundary adjustments must 
also preserve precision and scale to keep their values correct before 
truncation.
   
   ## Are these changes tested?
   Updated test.
   
   ## AI Disclosure
   OpenAI Codex was used for implementation. I reviewed the changes against 
repository conventions.


-- 
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]

Reply via email to