Make EXPLAIN ANALYZE-like visualization less verbose#527
Merged
gabotechs merged 2 commits intoJul 3, 2026
Merged
Conversation
Stage headers now summarize as `tasks=N, partitions=M` instead of listing
every task's partition range, and per-task node metrics collapse into a
`name={task_id:value, ...}` map instead of repeating the metric name for
each task.
The map keeps task ids explicit, which matters when a node runs on only a
subset of tasks (e.g. under a ChildrenIsolatorUnionExec) and reports a
non-contiguous set of ids. Metrics with no task id (non-distributed plans)
keep the plain name=value form.
Regenerate the inline snapshots, update the docs/examples that show plan
output, and add unit tests for both formatters.
gabotechs
reviewed
Jul 2, 2026
DistributedExec is the coordinator's single-task head, and the planner coalesces its input to a single partition before wrapping it, so its header was always `tasks=1, partitions=1` — pure noise. Render just `DistributedExec` (plus its coordinator-side metrics when shown).
Collaborator
|
🤔 I'm a bit on the fence whether we should do: or Don't have a strong opinion, but maybe the latter is actually nicer to eye given that square brackets are also used in other places. |
gabotechs
approved these changes
Jul 3, 2026
gabotechs
left a comment
Collaborator
There was a problem hiding this comment.
Let's keep the square brackets, it's easy to revisit later if needed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #525.
Two tweaks to the plan display, aimed at the wide/long distributed plans the issue calls out.
Stage header — instead of one entry per task:
Per-task node metrics — instead of repeating the metric name for every task:
Also updated the docs/examples that show plan output, regenerated the inline snapshots, and added unit tests for both formatters in
stage.rs.