comphead commented on code in PR #18635:
URL: https://github.com/apache/datafusion/pull/18635#discussion_r2516220684


##########
datafusion/common/src/config.rs:
##########
@@ -606,6 +606,28 @@ config_namespace! {
         /// written, it may be necessary to increase this size to avoid errors 
from
         /// the remote end point.
         pub objectstore_writer_buffer_size: usize, default = 10 * 1024 * 1024
+
+        /// Whether to enable ANSI SQL mode.
+        ///
+        /// Currently only used in DataFusion Spark crate
+        ///
+        /// When `enable_ansi_mode` is set to `true`, the query engine 
enforces ANSI SQL
+        /// semantics for expressions, casting, and error handling. This 
includes:
+        /// - Strict type coercion rules: implicit casts between incompatible 
types are disallowed.
+        /// - Standard SQL arithmetic behavior: operations like division by 
zero or overflow
+        ///   result in runtime errors instead of returning `NULL` or silently 
truncating values.

Review Comment:
   Thanks @hsiang-c let me think how to rephrase it better



-- 
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]

Reply via email to