jonahgao commented on issue #7458:
URL: 
https://github.com/apache/arrow-datafusion/issues/7458#issuecomment-1702886615

   > Expected -NaN results in the query outputs become NaN in my local tests. 
What could be the reason for this? As far as I know, there is no -NaN in IEEE 
754.
   
   I also think so. 
   
   We can accept `+NAN` and `-NAN` as inputs just like PostgreSQL does. 
However, when outputting, it should no longer differentiate them because `NAN` 
represents an exception and the sign is no longer meaningful.
   ```
   postgres=# select '+NAN'::float,'+NAN'::float;
    float8 | float8
   --------+--------
       NaN |    NaN
   (1 row)
   ```


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