-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix](Nereids) fix leading hint should have all tables in one query block #33517
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
| } | ||
| if (getTablelist().size() < inputRelationSets.size()) { | ||
| this.setStatus(HintStatus.SYNTAX_ERROR); | ||
| this.setErrorMessage("leading should have all tables in query block"); |
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.
list missing table here?
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.
done
| Long totalBitmap = 0L; | ||
| if (hasSameName()) { | ||
| this.setStatus(HintStatus.SYNTAX_ERROR); | ||
| this.setErrorMessage("duplicated table"); |
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.
list duplicated table name?
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.
done
c1c781d to
491e6ca
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Proposed changes
example: when one query block have t1 join t2 join t3, leading should have these three tables together
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...