Skip to content

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

Merged
novikd merged 2 commits into
26.6from
backport/26.6/110739
Aug 6, 2026
Merged

novikd merged 2 commits into
26.6from
backport/26.6/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 #112771

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.6.3.10

@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 [005112f]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) ERROR

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.6`.

Adaptations to the 26.6 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.6`, so no declaration is added here.
@novikd
novikd merged commit 2e2300b into 26.6 Aug 6, 2026
112 of 116 checks passed
@novikd
novikd deleted the backport/26.6/110739 branch August 6, 2026 09:56
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