neilconway opened a new issue, #10788:
URL: https://github.com/apache/arrow-rs/issues/10788
### Describe the bug
See repro.
### To Reproduce
```rust
use arrow_array::types::{Decimal32Type, Decimal64Type, Decimal128Type,
Decimal256Type};
use arrow_cast::parse::parse_decimal;
// 48250.37936..., i.e. 482503793 at scale 4, which fits precision 9
let s = "4825037936439135476.2609835314269495255615E-14";
parse_decimal::<Decimal32Type>(s, 9, 4); // panics: attempt to divide by
zero
parse_decimal::<Decimal64Type>(s, 9, 4); // Ok(0)
parse_decimal::<Decimal128Type>(s, 9, 4); // Ok(-697167)
parse_decimal::<Decimal256Type>(s, 9, 4); // Ok(482503793) — correct
```
### Expected behavior
_No response_
### Additional context
_No response_
--
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]