Skip to content

Cherry pick #99957 to 26.2: Revert #97114 Move join step row estimation before check for 1 child" - #103089

Merged
robot-ch-test-poll4 merged 4 commits into
backport/26.2/99957from
cherrypick/26.2/99957
Apr 19, 2026
Merged

robot-ch-test-poll4 merged 4 commits into
backport/26.2/99957from
cherrypick/26.2/99957

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #99957

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

davenger and others added 3 commits March 18, 2026 19:01
Revert #97114 Move join step row estimation before check for 1 child"
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 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 pr-bugfix Pull request with bugfix, not backported by default labels Apr 19, 2026
@fm4v

fm4v commented Apr 19, 2026

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

…icts

- Resolved conflict in `optimizeJoin.cpp`: keep the `JoinStepLogical` check after `aggregating_step` (as per the revert of #97114), using `column_stats = {}` since `getResultColumnStats()` was removed in the backport
- Resolved conflict in `03837_subquery_ndv_propagation_join_order.reference`: deleted (both .sql and .reference deleted in backport branch)

Co-authored-by: fm4v <[email protected]>

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the merge conflicts in commit 0ddbf61:

  1. optimizeJoin.cpp: Kept HEAD's placement of the JoinStepLogical check after aggregating_step (preserving the revert of Move join step row estimation before check for 1 child #97114), but updated column_stats = {} since getResultColumnStats() was removed in the backport branch.
  2. 03837_subquery_ndv_propagation_join_order.reference: Deleted — both the .sql and .reference files were removed in the backport branch since column_stats tracking was removed from JoinStepLogical.

@CLAassistant

CLAassistant commented Apr 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ alexey-milovidov
✅ davenger
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

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-bugfix Pull request with bugfix, not backported by default 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.

7 participants