Update src/Core/Settings.cpp

Co-authored-by: Pavel Kruglov <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
李扬 2024-10-29 18:13:17 +08:00 committed by GitHub
parent fa78f2db20
commit 8e9c8a6670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5467,7 +5467,7 @@ Only available in ClickHouse Cloud. Number of background threads for speculative
Only available in ClickHouse Cloud. Exclude new data parts from SELECT queries until they're either pre-warmed (see cache_populated_by_fetch) or this many seconds old. Only for Replicated-/SharedMergeTree.
)", 0) \
DECLARE(Bool, short_circuit_function_evaluation_for_nulls, true, R"(
Whether to enable short-circuit evaluation for rows with at least one null in arguments in functions where useDefaultImplementationForNulls() is true.
Allows to execute functions with Nullable arguments only on rows with non-NULL values in all arguments when ratio of NULL values in arguments exceeds short_circuit_function_evaluation_for_nulls_threshold. Applies only to functions that return NULL value for rows with at least one NULL value in arguments.
)", 0) \
DECLARE(Double, short_circuit_function_evaluation_for_nulls_threshold, 1.0, R"(
Ratio threshold for short-circuit evaluation for rows with at least one null in arguments in functions where useDefaultImplementationForNulls() is true. This is only valid when short_circuit_function_evaluation_for_nulls is true.