fix sum decimal array overflow behavior with scalars#6431
fix sum decimal array overflow behavior with scalars#6431joseph-isaacs merged 2 commits intodevelopfrom
Conversation
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Merging this PR will degrade performance by 10.22%
Performance Changes
Comparing Footnotes
|
|
What was the bug here? That we returned overflow value even though it didn't fit into the declared dtype? |
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
|
overflow the precision but not the storage type? |
Yep, so the summation of the decimal array might not have fit the return dtype (even if it did not overflow the storage value). The regression test included in this change does something similar to what the fuzzer found. |
Previously it only checked overflow on the storage type (in the |
|
Thanks, I should have read the test before asking my question |
Fixes #6429
Also refactors the code a bit so that we dont need a clippy allow complexity