Omega359 commented on issue #13780:
URL: https://github.com/apache/datafusion/issues/13780#issuecomment-2571776995

   The core issue is something related to the cast to the `REAL` type. Changing 
the sql to cast to DOUBLE results in the correct results:
   
   ```sql
   > SELECT - NULLIF ( + 15, - 27 + + CAST ( NULL AS DOUBLE ) + + + MIN ( 35 ) 
* - COUNT ( * ) * - 14 + 64 ) * 87 * + 75 * 34 * + 76 + - - 31 AS col0, - 10 * 
- + 33 * ( + - NULLIF ( 21, + 70 * + 71 ) ) * - 15;
   
+--------------+---------------------------------------------------------------------------------------+
   | col0         | Int64(-10) * (- Int64(33)) * (- nullif(Int64(21),Int64(70) 
* Int64(71))) * Int64(-15) |
   
+--------------+---------------------------------------------------------------------------------------+
   | -252908969.0 | 103950                                                      
                          |
   
+--------------+---------------------------------------------------------------------------------------+
   
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to