You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/03/06 03:24:33 UTC
[I] `attempt to divide by zero` error on decimal division [arrow-datafusion-comet]
viirya opened a new issue, #171:
URL: https://github.com/apache/arrow-datafusion-comet/issues/171
### Describe the bug
An `attempt to divide by zero` error on decimal division happened on TPCDS q59 when working on SortMergeJoin.
```
Cause: org.apache.comet.CometNativeException: attempt to divide by zero
at std::backtrace::Backtrace::create(__internal__:0)
at comet::errors::init::{{closure}}(__internal__:0)
at std::panicking::rust_panic_with_hook(__internal__:0)
at std::panicking::begin_panic::{{closure}}(__internal__:0)
at std::sys_common::backtrace::__rust_end_short_backtrace(__internal__:0)
at std::panicking::begin_panic(__internal__:0)
at num_bigint::biguint::division::div_rem_ref(__internal__:0)
at comet::execution::datafusion::expressions::scalar_funcs::create_comet_physical_fun::{{closure}}(__internal__:0)
at <datafusion_physical_expr::scalar_function::ScalarFunctionExpr as datafusion_physical_expr::physical_expr::PhysicalExpr>::evaluate(__internal__:0)
at <comet::execution::datafusion::expressions::checkoverflow::CheckOverflow as datafusion_physical_expr::physical_expr::PhysicalExpr>::evaluate(__internal__:0)
at <core::iter::adapters::GenericShunt<I,R> as core::iter::traits::iterator::Iterator>::next(__internal__:0)
at <datafusion_physical_plan::projection::ProjectionStream as futures_core::stream::Stream>::poll_next(__internal__:0)
at comet::execution::jni_api::Java_org_apache_comet_Native_executePlan::{{closure}}(__internal__:0)
at _Java_org_apache_comet_Native_executePlan(__internal__:0)
at org.apache.comet.Native.executePlan(Native Method)
```
### Steps to reproduce
```scala
val decimalLiteral = Decimal(0.00)
df.select($"dec" / decimalLiteral).collect()
```
### 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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `attempt to divide by zero` error on decimal division [arrow-datafusion-comet]
Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #171: `attempt to divide by zero` error on decimal division
URL: https://github.com/apache/arrow-datafusion-comet/issues/171
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org