thomas-k-cameron commented on issue #6649: URL: https://github.com/apache/arrow-datafusion/issues/6649#issuecomment-1587540701
It seems like it is interpreting as this, ```sql -12 * 35) % (-16 * 32); ``` instead of this. ```sql (-12 * 35 % -16) * 32; ``` I was able to reproduce with v26.0.0 ```sql ❯ select (-12 * 35) % (-16 * 32); +-------------------------------------------------------+ | (- Int64(12) * Int64(35)) % (- Int64(16) * Int64(32)) | +-------------------------------------------------------+ | -420 | +-------------------------------------------------------+ 1 row in set. Query took 0.000 seconds. ❯ select (-12 * 35 % -16) * 32; +----------------------------------------------------+ | (- Int64(12) * Int64(35) % Int64(-16)) * Int64(32) | +----------------------------------------------------+ | -128 | +----------------------------------------------------+ 1 row in set. Query took 0.001 seconds. ``` -- 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]
