We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DivideByZero
Divide
Describe the bug
Currently, the math_divide_op checks the DivideByZero error for all primitive types: https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/arithmetic.rs#L130-L138 This is not correct for the float type because 0.0/0.0 = NaN and NotZero/0.0 = (+/-) Infinity
math_divide_op
0.0/0.0 = NaN
NotZero/0.0 = (+/-) Infinity
To Reproduce
Expected behavior Don't check the DivideByZero error for float type.
Additional context
The text was updated successfully, but these errors were encountered:
try_binary
checked_ops
math_checked_op
Close this issue as we should follow the c++ impl
Sorry, something went wrong.
label_issue.py automatically added labels {'arrow'} from #2717
label_issue.py
CHANGELOG.md
No branches or pull requests
Describe the bug
Currently, the
math_divide_op
checks theDivideByZero
error for all primitive types: https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/arithmetic.rs#L130-L138This is not correct for the float type because
0.0/0.0 = NaN
andNotZero/0.0 = (+/-) Infinity
To Reproduce
Expected behavior
Don't check the
DivideByZero
error for float type.Additional context
The text was updated successfully, but these errors were encountered: