Skip to content

Fix exchange operator timing and add stream labels#61

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/exchange-fixes
Mar 9, 2026
Merged

Fix exchange operator timing and add stream labels#61
erikdarlingdata merged 1 commit intodevfrom
feature/exchange-fixes

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Fix incorrect elapsed time on exchange operators: Gather Streams was showing 34.592s instead of ~0s because Thread 0 (coordinator) wall clock time was being used as own-time. Now correctly returns 0 for Thread-0-only exchanges.
  • Label Parallelism operators: Nodes now show "Parallelism (Gather Streams)", "(Distribute Streams)", or "(Repartition Streams)" instead of just "Parallelism"
  • CPU font size: Match CPU time text size to elapsed time (was 9, now 10)
  • Copy Path: Right-click tab context menu option to copy file path for file-backed plans

Test plan

  • 47 existing tests pass
  • Verified Gather Streams shows ~0.000s on bad-parallel-window-aggregate.sqlplan
  • Verified labels show "Parallelism (Gather Streams)" etc.
  • Verified Copy Path works on file-opened tabs

🤖 Generated with Claude Code

…ion labels

- Fix incorrect own-time calculation for exchange operators: Thread 0
  (coordinator) elapsed time represents the entire parallel branch wall
  clock, not the operator's own work. Now returns 0 for Thread-0-only
  exchanges and uses max worker thread time when available.
- Display LogicalOp on Parallelism nodes: "Parallelism (Gather Streams)",
  "Parallelism (Distribute Streams)", "Parallelism (Repartition Streams)"
- Match CPU time font size to elapsed time (10 → 10, was 9)
- Add "Copy Path" to tab right-click menu for file-backed plans

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit a6aa8be into dev Mar 9, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/exchange-fixes branch March 9, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant