sarutak opened a new pull request, #7274:
URL: https://github.com/apache/arrow-datafusion/pull/7274

   ## Which issue does this PR close?
   
   Closes #7273 
   
   ## Rationale for this change
   In Datafusion, `+NaN` and` -NaN` are distinguished as well as `+0.0` and 
`-0.0`.
   For example, `asin(10)` returns `NaN` but `'inf'::DOUBLE / 'inf'::DOUBLE` 
returns `-NaN`.
   `3.0 * 0` returns `0.0` but `-3.0 * 0` returns `-0.0`.
   
   So, users need to determine `NaN` and `0.0` like as follows.
   
   ```
   SELECT ... WHERE x = 'NaN'::DOUBLE OR x = -'NaN'::DOUBLE;
   ```
   
   ## What changes are included in this PR?
   This PR aims to add `isnan` and `iszero` which determine `NaN` and `0.0` 
ignoring it's sign
   
   ## Are these changes tested?
   Added new tests.
   
   ## Are there any user-facing changes?
   Yes but it doesn't break compatibility.


-- 
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]

Reply via email to