Skip to content

Cherry pick #111589 to 26.6: Add setting analyzer_compatibility_apply_final_to_all_joined_tables - #111977

Merged
robot-clickhouse-ci-1 merged 9 commits into
backport/26.6/111589from
cherrypick/26.6/111589
Jul 26, 2026
Merged

robot-clickhouse-ci-1 merged 9 commits into
backport/26.6/111589from
cherrypick/26.6/111589

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #111589

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

fm4v added 8 commits July 23, 2026 13:00
PR #108979 fixed FINAL on the left-most table of a JOIN leaking onto the
other joined tables. The fix is result-changing for queries over
ReplacingMergeTree tables with unmerged duplicate rows that relied on the
old behavior, and had no compatibility gate. Put the legacy behavior under
the new setting and register it in SettingsChangesHistory so that
compatibility with versions before 26.7 restores the old semantics.
… in 26.4

Move the settings-changes-history entry from 26.7 to 26.6 (true -> false),
matching the planned backport of the fix with the setting defaulting to
false on the 26.6 release line. Add an introduction entry to 26.4
(true -> true) for backports to 26.4 and 26.5, where the setting will
default to true and preserve the old behavior. Adjust the test to use
compatibility = '26.5' since 26.6 now maps to the fixed behavior.
The check requires any setting that is new relative to the last released
version to appear in a history block newer than 26.6. Add a no-op
(false -> false) entry under 26.7; the behavior flip stays recorded under
26.6 and the backport introduction under 26.4, so compatibility
resolution is unchanged.
Add setting `analyzer_compatibility_apply_final_to_all_joined_tables`
@robot-ch-test-poll robot-ch-test-poll added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Jul 26, 2026
…rypick/26.6/111589

# Conflicts:
#	src/Core/Settings.cpp
#	src/Core/SettingsChangesHistory.cpp
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 merged commit 311a2e6 into backport/26.6/111589 Jul 26, 2026
1 check passed
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 deleted the cherrypick/26.6/111589 branch July 26, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants