Skip to content

Backport #111492 to 26.7: Disable the query condition cache for ORDER BY ... LIMIT n queries by default - #112914

Merged
clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/111492
Aug 2, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/111492

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #111492

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.7.2.59

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Aug 1, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [5a81bea]

Summary: ✅

The automated backport copied the whole `26.8` block of
`SettingsChangesHistory.cpp` from `master`, but 15 of its 16 entries
belong to changes that were not backported. 13 of them name settings
that have no `DECLARE` on the `26.7` branch, so
`Settings::applyCompatibilitySetting` threw
`Unknown setting in history` for every query or server started with a
`compatibility` value, which turned the whole compatibility test family
red (`04631_query_condition_cache_topk_compatibility`,
`test_allow_feature_tier`, `test_compatibility_merge_tree_settings`,
`test_plain_rewritable_backward_compatibility`, and others).

Keep only the `use_query_condition_cache_for_top_k` entry. It stays in
the `26.8` block: the upgrade check only accepts a new setting whose
history version is strictly greater than the previously released
version, which is `26.7` on this branch.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Fixed the PR-caused CI red (59 failing tests across Stateless tests (amd_asan_ubsan, distributed plan, parallel) and 8 integration shards).

Root cause: the automated backport copied the entire 26.8 block of src/Core/SettingsChangesHistory.cpp from master, but 15 of its 16 entries belong to changes that were not backported. 13 of them name settings that have no DECLARE on the 26.7 branch (unique_key_probe_implementation, use_projection_index_in_read_pools, allow_lossy_numeric_supertype, …), so Settings::applyCompatibilitySetting threw Unknown setting in history for any query or server with a compatibility value. That is why the whole compatibility family went red at once: 04631_query_condition_cache_topk_compatibility, 02324_compatibility_setting, 03274_join_algorithm_default, test_allow_feature_tier, test_compatibility_merge_tree_settings, test_plain_rewritable_backward_compatibility, test_backup_restore_on_cluster/test_different_versions, and the rest.

Fix (5a81bea): keep only the use_query_condition_cache_for_top_k entry. It stays in a 26.8 block rather than moving into 26.7, because the upgrade check only accepts a new setting whose history version is strictly greater than the previously released version, which is 26.7 on this branch. Also merged the latest 26.7 (clean).

@clickhouse-gh
clickhouse-gh Bot merged commit 1399e12 into 26.7 Aug 2, 2026
39 of 40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/111492 branch August 2, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants