Disable optimization by default

This commit is contained in:
János Benjamin Antal 2024-11-14 13:34:00 +00:00
parent 4f6b5c09e0
commit 911d775fa0
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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",