-
Notifications
You must be signed in to change notification settings - Fork 1.5k
throw Divide by zero error when use case when #8814
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
get the plan
|
I use
|
I have tried to reproduce the problem with latest code datafusion 34.0.0. But it is working fine. What is the version of your datafusion?
|
Can I get your commit id? I use
|
I also find this reason, do you have the time to fix this issue? I think this issue may be cause to other issues. I want to find which commit caused this issue. |
yes, I would like to fix this. I think this is related to #8340 and #8454(and the discussion in #8296), that before above pr the seem like we should not extract common sub_expr in the below is the plan in datafusion-cli v33.0.0,
|
@liukun4515 my codebase is upto below commit.
|
@liukun4515 When I update my codebase to latest, I am also getting 'Divide by zero' error. So this is the regression which is caused by changes after
|
thanks for @dhamotharan-ps @haohuaijin I will help to review your pr this week. |
Describe the bug
When i use the
and got the divide by zero
To Reproduce
create table users as values (1,1),(2,2),(3,3),(0,0),(4,0);
When run
there is no issue.
But when run
there is the issue: divide by zero
Expected behavior
no exception and get the result
Additional context
I am try to find the root cause, maybe it is caused by optimizer or the execution of the physical expr.
The text was updated successfully, but these errors were encountered: