-
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: add missing specs to plan diagrams #76748
Conversation
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @yuzefovich)
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.
Although I wonder whether we should add a test that verifies somehow that whenever a new processor is introduced, its spec implements diagramCellType
interface. If I'm not mistaken, at the moment (before your change) we have 29 implementations for 33 processors, so it leaves two more processors without the proper implementation which would crash the server whenever EXPLAIN (DISTSQL)
is executed on a query with those two processors.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rharding6373)
6d75521
to
d1e9cd1
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.
That's a good point. Added the rest of the missing specs and a compliance test. PTAL.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)
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 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rharding6373)
pkg/sql/execinfrapb/flow_diagram.go, line 516 at r1 (raw file):
} // summary implements the diagramCellType interface.
nit: let's keep the comment.
d1e9cd1
to
04f2a20
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.
TFTR!
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)
pkg/sql/execinfrapb/flow_diagram.go, line 516 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit: let's keep the comment.
oops, thanks for the catch!
bors r+ |
Build failed (retrying...): |
bors r- |
Canceled. |
This change allows missing specs (e.g., RestoreDataSpec and SplitAndScatterSpec) to be shown in plan diagrams. Before this change a plan involving these types would result in an error generating the diagrams. Also added a test to make sure future specs implement the `diagramCellType` interface, which is required to generate diagrams. Release note: None
04f2a20
to
607034a
Compare
bors r+ |
Build succeeded: |
This change allows missing specs (e.g., RestoreDataSpec and
SplitAndScatterSpec) to be shown in plan diagrams. Before this change a
plan involving these types would result in an error generating the
diagrams. Also added a test to make sure future specs implement the
diagramCellType
interface, which is required to generate diagrams.Release note: None