VanshajPoonia commented on PR #12459: URL: https://github.com/apache/arrow-rs/pull/12459#issuecomment-7211856483
Thanks, good catch. Fixed in 13dd80ad. As `get_fixed_point_info` now adds the two input scales as an i16, two scale -80 inputs give a product scale of -160, and a required scale of -100 returns the "greater than product scale" error. I added your case to `test_decimal_multiply_fixed_point_required_scale_far_below_product_scale` for both functions. Without the change it panics on the overflow in a debug build and returns zeros in a release build. With it the arithmetic tests pass in both, and `cargo test -p arrow-arith`, fmt and clippy are clean. -- 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]
