jonahgao commented on issue #13784: URL: https://github.com/apache/datafusion/issues/13784#issuecomment-2560545696
If [fail_on_overflow](https://github.com/apache/datafusion/blob/e718c1a5c5770c071c9c2e14a7681a7f1a2f3f23/datafusion/physical-expr/src/expressions/binary.rs#L88) is enabled, Datafusion will return an overflow error. ``` > SELECT DISTINCT + col2 * + col2 * - col2 * col2 * + col2 / + col2 + col0 AS col2 FROM tab0; External error: External error: Arrow error: Arithmetic overflow: Overflow happened on: -96059601 * 99 ``` Maybe we need a new config option for `fail_on_overflow`, or even enable it by default. -- 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]
