HaoYang670 opened a new issue, #2719: URL: https://github.com/apache/arrow-rs/issues/2719
**Describe the bug** <!-- A clear and concise description of what the bug is. --> 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` **To Reproduce** <!-- Steps to reproduce the behavior: --> **Expected behavior** Don't check the `DivideByZero` error for float type. **Additional context** <!-- Add any other context about the problem here. --> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
