Skip to content

Backport #111589 to 26.7 without the stray 26.8 settings-history block - #112103

Closed
groeneai wants to merge 2 commits into
ClickHouse:26.7from
groeneai:fix-26.7-backport-111589-settings-changes-history
Closed

groeneai wants to merge 2 commits into
ClickHouse:26.7from
groeneai:fix-26.7-backport-111589-settings-changes-history

Conversation

@groeneai

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

This is an alternative to #111978, which currently fails its CI. It carries the same backport of #111589 to 26.7, minus the one hunk that causes the failures. @fm4v asked me to fix it; I cannot push to the robot's branch, so this is the same change on a branch of mine. Merge whichever you prefer and close the other.

What was wrong with #111978. The automated backport commit b17829bf545742 imported master's newest version block:

addSettingsChanges(settings_changes_history, "26.8", { ... 5 settings ... });

origin/26.7 has no 26.8 block, and four of that block's five settings do not exist anywhere in the 26.7 tree (git grep finds each only in SettingsChangesHistory.cpp itself): unique_key_probe_implementation, allow_lossy_numeric_supertype, join_runtime_filter_min_probe_rows, query_plan_short_circuit_constant_false_join. The 26.8 header itself came from the unrelated master commit bce71f11a6875d.

SettingsImpl::applyCompatibilitySetting (src/Core/Settings.cpp) walks the history newest-first and calls getTier(final_name) for every entry of every version above the requested one; BaseSettings::getTier reaches throwSettingNotFound for a name the build does not have. So on b17829bf545742 every compatibility value below 26.8 fails with Code: 115 UNKNOWN_SETTING, which is what breaks the stateless suite, the stress smoke run and all eight integration shards on that PR.

This PR keeps only the two entries the backport actually needs: the 26.6 behaviour flip (true -> false) and the 26.4 introduction (true, true). That is byte-for-byte what the already-merged 26.6 sibling #111987 does, and it preserves the release-branch invariant that the newest block equals the branch version.

Verification (debug build of this branch, 26.7.2.1, Build ID a96a132022ece7990b71ca3de723ba6d2bded3e6):

compatibility #111978 head b17829bf545742 this branch
21.1, 24.7, 24.9, 24.10, 24.11, 25.6, 25.8, 26.4, 26.5, 26.6, 26.7 Code: 115 ... Unknown setting 'unique_key_probe_implementation' 1
26.8 1 n/a (no such block on 26.7)

Reverting just this one hunk and rebuilding reproduces the failing column, and restoring it rebuilds to the identical Build ID, so nothing else in the tree moved.

The backported setting itself resolves correctly through compatibility: 26.4 and 26.5 give true (the old behaviour), 26.6 and 26.7 give false, and the default is false. 04627_analyzer_compatibility_final_all_joined_tables matches its reference.

robot-clickhouse and others added 2 commits July 26, 2026 19:36
The automated backport of ClickHouse#111589 to 26.7 imported master's newest
`addSettingsChanges(settings_changes_history, "26.8", {...})` block, which
`origin/26.7` does not have. Four of its five settings do not exist in the 26.7
tree at all, so `SettingsImpl::applyCompatibilitySetting` walks the history
newest-first, calls `getTier()` for every entry above the requested version and
reaches `throwSettingNotFound`, making every `compatibility` value below 26.8
fail with `UNKNOWN_SETTING`.

Only the two entries the backport actually needs are kept: the 26.6 behaviour
flip and the 26.4 introduction. This matches the already-merged 26.6 sibling
backport ClickHouse#111987 byte for byte.

Co-Authored-By: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants