kosiew opened a new issue, #7939:
URL: https://github.com/apache/arrow-rs/issues/7939
## Description
There is an existing test for casting `Decimal256` values (`i256::MIN` and
`i256::MAX`) to `f64`, checking for correct overflow behavior in #7887
We should add (or confirm the existence of) an equivalent test for
Decimal128, specifically testing casting i128::MAX and i128::MIN to f64 with
the following expectations:
Positive overflow results in positive infinity.
Negative overflow results in negative infinity.
This will ensure consistency in overflow handling and protect against future
regressions.
## Acceptance Criteria
Test for Decimal128 to f64 casting with i128::MAX and i128::MIN is added or
verified.
The test asserts .is_infinite() and checks the correct sign of the result.
The test style matches existing Decimal256 casting tests.
## Context
[PR follow up
action](https://github.com/apache/arrow-rs/pull/7887#discussion_r2198132684)
--
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]