mbutrovich commented on issue #12174:
URL: https://github.com/apache/arrow-rs/issues/12174#issuecomment-7112579607

   I'm unassigning myself and leaving this for someone who needs it.
   
   Only `Decimal256` values wider than 38 digits reach the two divisions, 
because [`Display for 
i256`](https://github.com/apache/arrow-rs/blob/bef1132ae8dd220acfe8487b5d2e8f9e9500a08c/arrow-buffer/src/bigint/mod.rs#L60-L64)
 formats anything that fits in `i128` through `to_i128` first. Spark and 
Iceberg cap decimals at 38 digits, so Comet and iceberg-rust never produce such 
values, and I don't know of a workload that formats them in bulk.
   
   The plan above still applies to whoever picks this up: confirm that 
`format_decimal` reaches the two divisions and measure how much time they take 
before changing them. #11421 lists this under its optional follow-ups.


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

Reply via email to