-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: fix panic with UNION ALL #25747
Conversation
Review status: 0 of 3 files reviewed at latest revision, all discussions resolved. pkg/sql/distsqlplan/physical_plan.go, line 263 at r1 (raw file):
I find this comment a bit confusing. You might consider rephrasing to something like:
Also, since this checks the latest stage of a physical plan, it might make sense to call this Comments from Reviewable |
Maybe we should add a call to Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. pkg/sql/logictest/testdata/logic_test/union, line 260 at r1 (raw file):
[nit] Comments from Reviewable |
Previously, UNION ALL distsql plans could panic the server if the two sub plans had different post processing. Now, this condition is detected, and a no-op stage is inserted after the plans if necessary. Release note (bug fix): fix a server crash when trying to plan certain UNION ALL queries.
I did it temporarily, saw tests pass, and then added it to the guard behind the metadata check planning where it can live on forever. Review status: 0 of 3 files reviewed at latest revision, 2 unresolved discussions. pkg/sql/distsqlplan/physical_plan.go, line 263 at r1 (raw file): Previously, asubiotto (Alfonso Subiotto Marqués) wrote…
Done. pkg/sql/logictest/testdata/logic_test/union, line 260 at r1 (raw file): Previously, RaduBerinde wrote…
Done. Comments from Reviewable |
bors r+ |
25747: sql: fix panic with UNION ALL r=jordanlewis a=jordanlewis Previously, UNION ALL distsql plans could panic the server if the two sub plans had different post processing. Now, this condition is detected, and a no-op stage is inserted after the plans if necessary. Fixes #25611. Release note (bug fix): fix a server crash when trying to plan certain UNION ALL queries. Co-authored-by: Jordan Lewis <jordanthelewis@gmail.com>
Build succeeded |
Previously, UNION ALL distsql plans could panic the server if the two
sub plans had different post processing. Now, this condition is
detected, and a no-op stage is inserted after the plans if necessary.
Fixes #25611.
Release note (bug fix): fix a server crash when trying to plan
certain UNION ALL queries.