mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Disable optimization by default
This commit is contained in:
parent
4f6b5c09e0
commit
911d775fa0
@ -5722,7 +5722,7 @@ Allow writing simple SELECT queries without the leading SELECT keyword, which ma
|
||||
|
||||
In `clickhouse-local` it is enabled by default and can be explicitly disabled.
|
||||
)", 0) \
|
||||
DECLARE(Bool, optimize_extract_common_expressions, true, R"(
|
||||
DECLARE(Bool, optimize_extract_common_expressions, false, R"(
|
||||
Allow extracting common expressions from disjunctions in WHERE and ON expressions. A logical expression like `(A AND B) OR (A AND C)` can be rewritten to `A AND (B OR C)`, which might help to utilize:
|
||||
- indices in simple filtering expressions
|
||||
- cross to inner join optimization
|
||||
|
@ -81,7 +81,7 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
|
||||
{"filesystem_cache_skip_download_if_exceeds_per_query_cache_write_limit", 1, 1, "Rename of setting skip_download_if_exceeds_query_cache_limit"},
|
||||
{"filesystem_cache_prefer_bigger_buffer_size", true, true, "New setting"},
|
||||
{"read_in_order_use_virtual_row", false, false, "Use virtual row while reading in order of primary key or its monotonic function fashion. It is useful when searching over multiple parts as only relevant ones are touched."},
|
||||
{"optimize_extract_common_expressions", false, true, "Optimize WHERE and ON expressions by extracting common expressions out from disjunction of conjunctions."},
|
||||
{"optimize_extract_common_expressions", false, false, "Introduce setting to optimize WHERE and ON expressions by extracting common expressions out from disjunction of conjunctions."},
|
||||
}
|
||||
},
|
||||
{"24.10",
|
||||
|
Loading…
Reference in New Issue
Block a user