-
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: fix bug some cases index merge join hint doesn't work #15515
planner: fix bug some cases index merge join hint doesn't work #15515
Conversation
PTAL @eurekaka |
break | ||
} | ||
} | ||
// Index merge join has more strict conditions than index join and index hash join, |
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.
- IndexMergeJoin requires stricter conditions than Index(Hash)Join when the output order is needed.
- IndexMergeJoin requires looser conditions than Index(Hash)Join when the output is unordered.
- If ordered-Index(Hash)Join can be chosen but ordered-IndexMergeJoin can not be chosen, we can build a plan with an enforced sort on IndexMergeJoin.
- Thus we can give up the plans here if IndexMergeJoin is nil when
hasINLMJHint
is true. Because we can make sure that an IndexMeregJoin with enforced sort will be built.
Codecov Report
@@ Coverage Diff @@
## master #15515 +/- ##
===========================================
Coverage ? 80.3874%
===========================================
Files ? 502
Lines ? 133970
Branches ? 0
===========================================
Hits ? 107695
Misses ? 17807
Partials ? 8468 |
LGTM |
PTAL @eurekaka |
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
Your auto merge job has been accepted, waiting for 15478 |
/run-all-tests |
@lzmhhh123 merge failed. |
Your auto merge job has been accepted, waiting for 15507 |
/run-all-tests |
What problem does this PR solve?
Issue Number: close #15484
Problem Summary: As title says.
What is changed and how it works?
What's Changed: A hack change, you can check the comment in the code change.
Check List
Tests
Side effects