Skip to content

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

Merged
novikd merged 2 commits into
26.5from
backport/26.5/110739
Aug 4, 2026
Merged

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

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

@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 [0a355d1]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/6) FAIL
test_storage_kafka/test_batch_slow_6.py::test_kafka_rebalance[generate_new_create_table_query-{}.*Saved offset] FAIL cidb

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

Adaptations to the 26.5 API:

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

`ErrorCodes::SUPPORT_IS_DISABLED` is already declared in `QueryAnalyzer.cpp` on `master`, so the original pull request did not add it; on `26.5` the declaration is missing and has to be added.
@novikd
novikd merged commit db47717 into 26.5 Aug 4, 2026
33 of 36 checks passed
@novikd
novikd deleted the backport/26.5/110739 branch August 4, 2026 16:21
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