Skip to content

Fix logical error while using query_plan_join_swap_table#76722

Merged
alexey-milovidov merged 3 commits intomasterfrom
vdimir/join_multiple_swap_iss76642
Feb 26, 2025
Merged

Fix logical error while using query_plan_join_swap_table#76722
alexey-milovidov merged 3 commits intomasterfrom
vdimir/join_multiple_swap_iss76642

Conversation

@vdimir
Copy link
Copy Markdown
Member

@vdimir vdimir commented Feb 25, 2025

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

bug in unreleased 25.2 close #76642

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

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Feb 25, 2025

Workflow [PR], commit [6b18e9c]

@clickhouse-gh clickhouse-gh bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Feb 25, 2025
@vdimir vdimir force-pushed the vdimir/join_multiple_swap_iss76642 branch from f2b6487 to 61d54f6 Compare February 25, 2025 16:25
result_node.step = std::make_unique<FilterStep>(new_join_node.step->getOutputHeader(), std::move(*join_expression_actions.post_join_actions), post_filter.getColumnName(), remove_filter);
result_node.children = {&new_join_node};
}
else if (!isPassthroughActions(*join_expression_actions.post_join_actions))
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.

These actions are required to restore the proper column order. ExpressionStep can handle this, but when there are two consecutive JoinSteps and the headers are messed up, it results in an error.

@nikitamikhaylov nikitamikhaylov self-assigned this Feb 25, 2025
@alexey-milovidov alexey-milovidov added this pull request to the merge queue Feb 26, 2025
Merged via the queue into master with commit 444c1c6 Feb 26, 2025
124 checks passed
@alexey-milovidov alexey-milovidov deleted the vdimir/join_multiple_swap_iss76642 branch February 26, 2025 03:54
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 26, 2025
robot-ch-test-poll1 added a commit that referenced this pull request Feb 26, 2025
Cherry pick #76722 to 25.2: Fix logical error while using query_plan_join_swap_table
robot-clickhouse added a commit that referenced this pull request Feb 26, 2025
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created-cloud deprecated label, NOOP label Feb 26, 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 Feb 26, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Feb 26, 2025
Backport #76722 to 25.2: Fix logical error while using query_plan_join_swap_table
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 2, 2025
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-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog 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.

Crash in Merge Join

6 participants