Skip to content

Backport #110739 to 26.7: Resolve JOIN USING identifier from aliases nested in the SELECT list - #113092

Merged
clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/110739
Aug 4, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/110739

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #110739
Cherry-pick pull-request #112772

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

Version info

  • Merged into: 26.7.3.11

@robot-clickhouse robot-clickhouse 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 Aug 3, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [de3d441]

Summary: ✅

The backported code uses query-tree accessors and a typedef that only exist on `master`, so `QueryAnalyzer.cpp` and `buildQueryTreeForShard.cpp` do not compile on `26.7`.

Adaptations to the 26.7 API:

- `TableExpressionNodePtr` -> `QueryTreeNodePtr`
- `ArrayJoinNode::getTableExpressionNodeTyped` -> `ArrayJoinNode::getTableExpression`
- `QueryNode::getJoinTreeNode` -> `QueryNode::getJoinTree`
- `JoinNode::getLeftTableExpressionNode` / `getRightTableExpressionNode` -> `getLeftTableExpression` / `getRightTableExpression`

Unlike `26.5`, `ErrorCodes::SUPPORT_IS_DISABLED` is already declared in `QueryAnalyzer.cpp` on `26.7`, so no declaration is added here.
@clickhouse-gh
clickhouse-gh Bot merged commit 51677b6 into 26.7 Aug 4, 2026
39 of 40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/110739 branch August 4, 2026 16:15
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