Skip to content

Cherry pick #107675 to 26.3: fix column order for distributed alias columns - #109692

Merged
robot-clickhouse merged 8 commits into
backport/26.3/107675from
cherrypick/26.3/107675
Jul 8, 2026
Merged

robot-clickhouse merged 8 commits into
backport/26.3/107675from
cherrypick/26.3/107675

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #107675

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

vdimir and others added 6 commits June 16, 2026 21:17
… ORDER BY

Extends the distributed ALIAS-column coverage with cases where the alias is
referenced in clauses other than the SELECT projection:

- WHERE + GROUP BY on alias columns sharing a sub-expression;
- JOIN ON referencing an alias column (GLOBAL JOIN);
- an aggregate over an alias column appearing only in ORDER BY (sort-key
  aggregate state that travels in the merge but not in the output).

Each is checked against the equivalent local query, including over the
query-plan-serialization transport (serialize_query_plan = 1).

Co-authored-by: Yakov Olkhovskiy <[email protected]>
…olumns-order

fix column order for distributed alias columns
@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 pr-bugfix Pull request with bugfix, not backported by default labels Jul 7, 2026
@CLAassistant

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.
1 out of 2 committers have signed the CLA.

✅ vdimir
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

@robot-clickhouse
robot-clickhouse merged commit cf3b6c2 into backport/26.3/107675 Jul 8, 2026
1 check passed
@robot-clickhouse
robot-clickhouse deleted the cherrypick/26.3/107675 branch July 8, 2026 14:30
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.

6 participants