hsiang-c opened a new issue, #18794: URL: https://github.com/apache/datafusion/issues/18794
### Describe the bug We tried to test a few arithmetic overflow cases in sqllogictest and found that `::` has higher precedence over minus sign (-). ### To Reproduce ```sql > select -128::tinyint; Arrow error: Cast error: Can't cast value 128 to type Int8 > select (-128)::tinyint; +-------------+ | Int64(-128) | +-------------+ | -128 | +-------------+ 1 row(s) fetched. Elapsed 0.003 seconds. ``` ### Expected behavior ```sql > select -128::tinyint; +-------------+ | Int64(-128) | +-------------+ | -128 | +-------------+ ``` ### 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: [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]
