-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: cleanup handling of EXPLAIN in the new factory #52108
Conversation
c94d5d9
to
6f518de
Compare
5413e15
to
9b64d3b
Compare
Release note: None
Previously, several EXPLAIN variants were mishandled in the new factory: instead of being wrapped as other planNodes are they were kept separate which resulted in a "mixed"-representation plan. This is now fixed by properly wrapping them. Additionally, this commit removes "partial support" that we had for EXPLAIN (PLAN) - the new factory cannot currently implement it, so in such cases we will be falling back to the old factory. Release note: None
9b64d3b
to
08090b6
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.
Reviewed 3 of 3 files at r1, 11 of 11 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)
pkg/sql/distsql_physical_planner.go, line 449 at r1 (raw file):
// WITH ORDINALITY never gets distributed so that the gateway node can // always number each row in order. return cannotDistribute, nil
Does this fix a bug? If so, you should call that out in the commit message.
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.
TFTR!
bors r+
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @asubiotto)
pkg/sql/distsql_physical_planner.go, line 449 at r1 (raw file):
Previously, asubiotto (Alfonso Subiotto Marqués) wrote…
Does this fix a bug? If so, you should call that out in the commit message.
No, it doesn't because this case was handled by default
case below. I made this change mostly for cosmetics - I think default
is a catch-all for planNode
s that don't have an equivalent processor, but ordinality node does have an equivalent and we choose (or we have to) not distribute it, so IMO it's nice to have an explicit case here that calls out that we don't distribute ordinality stage.
Build succeeded: |
51305: geo,geoindex: use bounding box for geography coverings that are bad r=sumeerbhola a=sumeerbhola This change uses a covererInterface implementation for geography that notices when a covering is using top-level cells of all faces and in that case uses the bounding box to compute the covering. Also changed the bounding box calculation for geography shapes to use only the points and not first construct s2.Regions. The latter causes marginally bad shapes to continue to have bad coverings since the bounding box also covers the whole earth. Release note: None 51882: roachpb: panic when comparing a Lease to a non-lease r=andreimatei a=andreimatei Release note: None 52146: sql: remove local execution of projectSetNode and implement ConstructProjectSet in the new factory r=yuzefovich a=yuzefovich Depends on #52108. **sql: remove local execution of projectSetNode** We have project set processor which is always planned for `projectSetNode`, so this commit removes the dead code of its local execution. Additionally, it removes some unused fields and cleans up cancellation check of the processor. Release note: None **sql: implement ConstructProjectSet in the new factory** Addresses: #47473. Release note: None 52320: kvserver: enable merges in kvnemesis r=aayushshah15 a=aayushshah15 We had merges disabled because of the bugs tracked in #44878, but those have since been fixed by #46085 and #50265. Release note: None Co-authored-by: sumeerbhola <[email protected]> Co-authored-by: Andrei Matei <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Aayush Shah <[email protected]>
sql: cleanup ordinality code a bit
Release note: None
sql: cleanup handling of EXPLAIN in the new factory
Previously, several EXPLAIN variants were mishandled in the new factory:
instead of being wrapped as other planNodes are they were kept separate
which resulted in a "mixed"-representation plan. This is now fixed by
properly wrapping them.
Release note: None