Repository navigation
Conversation
…ty_apply_final_to_all_joined_tables`
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
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
b17829bf545742imported master's newest version block:origin/26.7has no26.8block, and four of that block's five settings do not exist anywhere in the26.7tree (git grepfinds each only inSettingsChangesHistory.cppitself):unique_key_probe_implementation,allow_lossy_numeric_supertype,join_runtime_filter_min_probe_rows,query_plan_short_circuit_constant_false_join. The26.8header itself came from the unrelated master commitbce71f11a6875d.SettingsImpl::applyCompatibilitySetting(src/Core/Settings.cpp) walks the history newest-first and callsgetTier(final_name)for every entry of every version above the requested one;BaseSettings::getTierreachesthrowSettingNotFoundfor a name the build does not have. So onb17829bf545742everycompatibilityvalue below26.8fails withCode: 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.6behaviour flip (true->false) and the26.4introduction (true,true). That is byte-for-byte what the already-merged26.6sibling #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 IDa96a132022ece7990b71ca3de723ba6d2bded3e6):compatibilityb17829bf54574221.1,24.7,24.9,24.10,24.11,25.6,25.8,26.4,26.5,26.6,26.7Code: 115 ... Unknown setting 'unique_key_probe_implementation'126.81Reverting 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.4and26.5givetrue(the old behaviour),26.6and26.7givefalse, and the default isfalse.04627_analyzer_compatibility_final_all_joined_tablesmatches its reference.