-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hash join crash #8638
Fix hash join crash #8638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
e4ce63a
to
d9ca6cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SeaRise, yibin87 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@windtalker: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/rebuild |
/run-all-tests |
1 similar comment
/run-all-tests |
What problem does this PR solve?
Issue Number: close #8633
Problem Summary:
What is changed and how it works?
The root cause is in
Join::finalize
, it may add someREMOVE_COLUMN
action inother_cond_expr
if it is not semi or nullaware join:tiflash/dbms/src/Interpreters/Join.cpp
Line 2654 in ce42814
however, for function
handleOtherCondition()
,tiflash/dbms/src/Interpreters/Join.cpp
Lines 850 to 854 in ce42814
right_table_columns
is a index based on previous block, of there isREMOVE_COLUMN
action inother_cond_expr
, the index will become invalid.This pr disable generating
REMOVE_COLUMN
duringJoin::finalize
. It is possible that refine the code inhandleOtherCondition
so it does not depends on the index basedright_table_columns
, but I would like to do it in a standalone pr later since there is no too much time before a new release.Check List
Tests
Side effects
Documentation
Release note