Skip to content

Backport #127416 to 26.3: Fix Cannot fold actions for projection when the join order optimizer reorders an outer join converted to INNER - #130941

Merged
nickitat merged 2 commits into
26.3from
backport/26.3/127416
Nov 12, 2026
Merged

nickitat merged 2 commits into
26.3from
backport/26.3/127416

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #127416
Cherry-pick pull-request #130914

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

…en the join order optimizer reorders an outer join converted to INNER
@robot-ch-test-poll robot-ch-test-poll added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Nov 11, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [ddbb43e]

Summary: ✅

26.3 has no `enable_join_transitive_predicates`, no `query_plan_optimize_join_order_randomize`,
and no `dphyp` and `dpsub` algorithms. Remove them, and add queries with an explicit `a.t = c.t`
predicate that let `c` be joined with `a` before `b`; they fail without the fix on 26.3.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=130941&sha=2a5db71a7c600699ec6d0c69a8e0dac9678bbefb&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29
#130941

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nickitat
nickitat merged commit 4385c59 into 26.3 Nov 12, 2026
37 checks passed
@nickitat
nickitat deleted the backport/26.3/127416 branch November 12, 2026 15:33
leshikus pushed a commit that referenced this pull request Nov 13, 2026
26.3 has no `enable_join_transitive_predicates`, no `query_plan_optimize_join_order_randomize`,
and no `dphyp` and `dpsub` algorithms. Remove them, and add queries with an explicit `a.t = c.t`
predicate that let `c` be joined with `a` before `b`; they fail without the fix on 26.3.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=130941&sha=2a5db71a7c600699ec6d0c69a8e0dac9678bbefb&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29
#130941

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants