Omega359 opened a new issue, #13780: URL: https://github.com/apache/datafusion/issues/13780
### Describe the bug ```sql SELECT - NULLIF ( + 15, - 27 + + CAST ( NULL AS REAL ) + + + MIN ( 35 ) * - COUNT ( * ) * - 14 + 64 ) * 87 * + 75 * 34 * + 76 + - - 31 AS col0, - 10 * - + 33 * ( + - NULLIF ( 21, + 70 * + 71 ) ) * - 15; ``` df result: ```sql > SELECT - NULLIF ( + 15, - 27 + + CAST ( NULL AS REAL ) + + + 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) | +--------------+---------------------------------------------------------------------------------------+ | -252908960.0 | 103950 | +--------------+---------------------------------------------------------------------------------------+ ``` postgres, duckdb and sqlite result: ```sql D SELECT - NULLIF ( + 15, - 27 + + CAST ( NULL AS REAL ) + + + MIN ( 35 ) * - COUNT ( * ) * - 14 + 64 ) * 87 * + 75 * 34 * + 76 + - - 31 AS col0, - 10 * - + 33 * ( + - NULLIF ( 21, + 70 * + 71 ) ) * - 15; ┌────────────┬──────────────────────────────────────────────────────────────────┐ │ col0 │ (((-10 * -(+(33))) * +(-("nullif"(21, (+(70) * +(71)))))) * -15) │ │ int32 │ int32 │ ├────────────┼──────────────────────────────────────────────────────────────────┤ │ -252908969 │ 103950 │ └────────────┴──────────────────────────────────────────────────────────────────┘ ``` Duckdb and sqlite have col0 as an integer, pg and df have it as a float. ### To Reproduce sql above. ### Expected behavior _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org