-
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/cascades: add implementationRule for IndexLookUpJoin #14831
Conversation
/run-unit-test |
@@ -222,17 +222,24 @@ func (opt *Optimizer) fillGroupStats(g *memo.Group) (err error) { | |||
if g.Prop.Stats != nil { | |||
return nil | |||
} | |||
// 1. Recursively fill the stats of all the child groups. |
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.
This change blocks #14857.
Codecov Report
@@ Coverage Diff @@
## master #14831 +/- ##
================================================
- Coverage 80.7843% 80.1721% -0.6123%
================================================
Files 505 499 -6
Lines 136852 129787 -7065
================================================
- Hits 110555 104053 -6502
+ Misses 17821 17481 -340
+ Partials 8476 8253 -223 |
…dex_hash_join # Conflicts: # planner/cascades/testdata/integration_suite_in.json # planner/cascades/testdata/integration_suite_out.json # planner/core/explain.go # planner/core/logical_plans.go
I'm going to close this PR since it hasn't been updated for a long time. feel free to reopen if you want to continue with it. thank you for your contribution. |
What problem does this PR solve?
This PR adds a new ImplemenationRule
ImplIndexJoin
which will implementLogicalJoin
asPhysicalIndexJoin
,PhysicalIndexMergeJoin
andPhysicalIndexHashJoin
. (Although this PR only supportsPhysicalIndexJoin
).What is changed and how it works?
This PR almost copies all of the codes from
planner/core/exhaust_physical_plans.go/LogicalJoin.tryToGetIndexJoin
, but makes some little changes according to the cascades framework.For the convenience of the reviewers, this PR only supports build
PhysicalIndexJoin
which inner child is aTableReader
. In other words, I haven't implementedPhysicalIndexMergeJoin
,PhysicalIndexHashJoin
and IndexJoins which inner child is anIndexReader
. (But this PR still changes about 500 lines T.T ).Check List
Tests
Code changes
Side effects