Skip to content

fixing multiple joins with using and join_use_nulls - #92251

Merged
vdimir merged 2 commits into
masterfrom
vdimir/multiple_using_join_use_nulls
Dec 19, 2025
Merged

vdimir merged 2 commits into
masterfrom
vdimir/multiple_using_join_use_nulls

Conversation

@vdimir

@vdimir vdimir commented Dec 16, 2025

Copy link
Copy Markdown
Member

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 logical error for queries with multiple JOINs with USING clause and join_use_nulls.

Close #92173

@clickhouse-gh

clickhouse-gh Bot commented Dec 16, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [f8e3e47]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_debug, parallel) failure
02346_text_index_parallel_replicas FAIL cidb, issue
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting in ExpressionList: the query: FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Dec 16, 2025
size_t sort_column_list_node_size = sort_column_list_node->getNodes().size();
if (sort_column_list_node_size != 1 && is_order_by_asterisk)
{
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Expression ORDER BY {} is not supported, matcher expression can only contain single column",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to the fix, just came across unclear error message and improved it

@vdimir
vdimir marked this pull request as ready for review December 16, 2025 17:25
@Avogar Avogar self-assigned this Dec 18, 2025
@vdimir
vdimir added this pull request to the merge queue Dec 19, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 19, 2025
@vdimir
vdimir added this pull request to the merge queue Dec 19, 2025
Merged via the queue into master with commit 9be49e3 Dec 19, 2025
@vdimir
vdimir deleted the vdimir/multiple_using_join_use_nulls branch December 19, 2025 10:51
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong type with multiple joins with using and join_use_nulls

3 participants