-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: set dbName for hinted query block table alias (#21213) #21380
planner: set dbName for hinted query block table alias (#21213) #21380
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
@eurekaka you're already a collaborator in bot's repo. |
/run-unit-test |
/run-unit-test |
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
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
/merge |
@eurekaka Oops! This PR requires at least 2 LGTMs to merge. The current number of |
/run-all-tests |
cherry-pick #21213 to release-4.0
What problem does this PR solve?
Issue Number: close #15972
Problem Summary:
Hint does not take effect for query block table alias.
What is changed and how it works?
What's Changed:
RC for the ineffective hint is query block table alias has empty dbName, which is different with the specified hint. Set the dbName as CurrentDB if it is empty.
Related changes
Check List
Tests
Side effects
N/A
Release note