comphead opened a new issue, #23929: URL: https://github.com/apache/datafusion/issues/23929
### Is your feature request related to a problem or challenge? ## Description Apache DataFusion currently follows permissive SQL semantics for many runtime errors (for example, invalid casts, arithmetic overflow, division by zero, and malformed input). To improve SQL compatibility and make behavior configurable, DataFusion should support an ANSI SQL evaluation mode. ANSI mode would cause operations that encounter invalid input or runtime errors to return an error instead of silently producing `NULL` or another permissive result. This behavior is expected by users migrating from systems that support ANSI SQL semantics (such as Spark SQL with ANSI mode enabled) and enables stricter correctness guarantees. Supporting ANSI mode should provide: * A configurable session-level ANSI mode. * Consistent error semantics across expressions and built-in functions. * Preservation of existing permissive behavior when ANSI mode is disabled. This issue tracks adding the infrastructure and expression/function changes required to support ANSI mode throughout DataFusion. ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _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: [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]
