datafusion
datafusion copied to clipboard
panic at `attempt to multiply with overflow` when doing math on Decimal128 columns
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.
When fixed, pls un-ignore test tpch_q17_correlated() in core/tests/sql/subqueries.rs