datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

panic at `attempt to multiply with overflow` when doing math on Decimal128 columns

Open kmitchener opened this issue 3 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

When changing the TPC-H tests to use Decimals, getting panics with this error:

thread 'sql::subqueries::tpch_q17_correlated' panicked at 'attempt to multiply with overflow', datafusion/physical-expr/src/expressions/binary/kernels_arrow.rs:359:61

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

See #3393 for additional examples where the overflow happens on benchmark queries.

kmitchener avatar Sep 10 '22 15:09 kmitchener

When fixed, pls un-ignore test tpch_q17_correlated() in core/tests/sql/subqueries.rs

kmitchener avatar Sep 10 '22 15:09 kmitchener