Skip to content

Fix logical error with join_using_top_level_identifier #90010

Merged
vdimir merged 3 commits intomasterfrom
vdimir/multiple_join_using_select
Nov 19, 2025
Merged

Fix logical error with join_using_top_level_identifier #90010
vdimir merged 3 commits intomasterfrom
vdimir/multiple_join_using_select

Conversation

@vdimir
Copy link
Copy Markdown
Member

@vdimir vdimir commented Nov 13, 2025

Linked issues

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix possible logical error when using analyzer_compatibility_join_using_top_level_identifier with multiple joins.

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Nov 13, 2025

Workflow [PR], commit [62cab13]

Summary:

job_name test_name status info comment
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb
BuzzHouse (amd_ubsan) failure
Received signal 17 FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Nov 13, 2025
@vdimir vdimir marked this pull request as ready for review November 14, 2025 11:21
@Avogar Avogar self-assigned this Nov 14, 2025
@vdimir vdimir force-pushed the vdimir/multiple_join_using_select branch from 222de35 to e2812e0 Compare November 17, 2025 14:02
@vdimir vdimir requested a review from Avogar November 19, 2025 10:19
@vdimir
Copy link
Copy Markdown
Member Author

vdimir commented Nov 19, 2025

BuzzHouse (amd_debug)

https://github.com/ClickHouse/ClickHouse/issues/90002

BuzzHouse (amd_ubsan)

Cannot add action to empty ExpressionActionsChain
https://github.com/ClickHouse/ClickHouse/issues/88150

@vdimir vdimir added this pull request to the merge queue Nov 19, 2025
Merged via the queue into master with commit a0a3834 Nov 19, 2025
129 of 132 checks passed
@vdimir vdimir deleted the vdimir/multiple_join_using_select branch November 19, 2025 12:24
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 19, 2025
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 19, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Nov 19, 2025
Cherry pick #90010 to 25.10: Fix logical error with join_using_top_level_identifier
robot-clickhouse added a commit that referenced this pull request Nov 19, 2025
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 19, 2025
clickhouse-gh bot added a commit that referenced this pull request Nov 19, 2025
Backport #90010 to 25.10: Fix logical error with join_using_top_level_identifier
@tavplubix
Copy link
Copy Markdown
Member

@vdimir this failure is suspicious: CI DB

First time it happened in this PR, and then it started failing everywhere once it was merged on 2025-11-19

@vdimir
Copy link
Copy Markdown
Member Author

vdimir commented Nov 27, 2025

@vdimir this failure is suspicious: CI DB

First time it happened in this PR, and then it started failing everywhere once it was merged on 2025-11-19

This is a relevant issue, sorry for disturbing CI and thanks for pointing it out.

I don't see a point in reverting the PR, since the same query would otherwise fail with another LOGICAL_ERROR. We could revert/remove just the test for now, but I'll check if I can make a proper fix promptly.

@Felixoid Felixoid removed pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Feb 16, 2026
robot-ch-test-poll3 added a commit that referenced this pull request Feb 16, 2026
Cherry pick #90010 to 25.8: Fix logical error with join_using_top_level_identifier
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Feb 16, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 16, 2026
@vdimir vdimir removed pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Feb 16, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore labels Feb 16, 2026
clickhouse-gh bot added a commit that referenced this pull request Feb 16, 2026
Backport #90010 to 25.8: Fix logical error with join_using_top_level_identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v25.8-must-backport v25.10-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants