Skip to content

Commit 861b09a

Browse files
committed
Update
1 parent d19c4f4 commit 861b09a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

velox/core/QueryConfig.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,11 @@ class QueryConfig {
363363
static constexpr const char* kPrestoArrayAggIgnoreNulls =
364364
"presto.array_agg.ignore_nulls";
365365

366-
/// If true, Velox will use an ANSI-compliant dialect. For example, Velox will
367-
/// throw a runtime exception instead of returning null results when the
368-
/// inputs to a SQL operator or function are invalid.
366+
/// If true, Spark function's behavior is ANSI-compliant, e.g. throws runtime
367+
/// exception instead of returning null on invalid inputs.
368+
/// Note: This feature is still under development to achieve full ANSI
369+
/// compliance. Users can refer to the Spark function documentation to verify
370+
/// the current support status of a specific function.
369371
static constexpr const char* kSparkAnsiEnabled = "spark.ansi_enabled";
370372

371373
/// The default number of expected items for the bloomfilter.

velox/docs/configs.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,11 @@ Spark-specific Configuration
980980
* - spark.ansi_enabled
981981
- bool
982982
- false
983-
- If true, Velox will use an ANSI-compliant dialect. For example, Velox will throw a runtime exception instead of
984-
returning null results when the inputs to a SQL operator or function are invalid.
983+
- If true, Spark function's behavior is ANSI-compliant, e.g. throws runtime exception instead
984+
of returning null on invalid inputs.
985+
Note: This feature is still under development to achieve full ANSI compliance. Users can
986+
refer to the Spark function documentation to verify the current support status of a specific
987+
function.
985988
* - spark.legacy_size_of_null
986989
- bool
987990
- true

0 commit comments

Comments
 (0)