File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ class QueryConfig {
3636 static constexpr const char * kQueryMaxMemoryPerNode =
3737 " query_max_memory_per_node" ;
3838
39+ // / If true, Velox will use an ANSI-compliant dialect. For example, Velox will
40+ // / throw a runtime exception instead of returning null results when the inputs
41+ // / to a SQL operator or function are invalid.
42+ static constexpr const char * kAnsiEnabled = " ansi_enabled" ;
43+
3944 // / User provided session timezone. Stores a string with the actual timezone
4045 // / name, e.g: "America/Los_Angeles".
4146 static constexpr const char * kSessionTimezone = " session_timezone" ;
@@ -864,6 +869,10 @@ class QueryConfig {
864869 return get<uint64_t >(kExprMaxCompiledRegexes , 100 );
865870 }
866871
872+ bool ansiEnabled () const {
873+ return get<bool >(kAnsiEnabled , false );
874+ }
875+
867876 bool adjustTimestampToTimezone () const {
868877 return get<bool >(kAdjustTimestampToTimezone , false );
869878 }
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ Generic Configuration
4343 - integer
4444 - 80
4545 - Abandons partial TopNRowNumber if number of output rows equals or exceeds this percentage of the number of input rows.
46+ * - ansi_enabled
47+ - bool
48+ - false
49+ - If true, Velox will use an ANSI-compliant dialect. For example, Velox will throw a runtime exception instead of
50+ returning null results when the inputs to a SQL operator or function are invalid.
4651 * - session_timezone
4752 - string
4853 -
You can’t perform that action at this time.
0 commit comments