Repository navigation
Distributed query plan: serialize exchange data on every stream - #119067
Conversation
…eive over max_threads Co-Authored-By: Claude Fable 5.1 <[email protected]>
…into the sink Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ingle sink Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s between its sinks Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [4a2b779] Summary: ✅
AI ReviewSummaryThis PR moves streaming-exchange serialization from a single destination sink onto per-stream transforms, lets broadcast destinations share one serialized packet, adds transport/back-pressure profile events, and replaces the deleted layout tests with loopback transport and stateless topology coverage. I did not find a remaining correctness, compatibility, or performance-contract issue in the current code. Missing context / blind spots
Final Verdict✅ No new review findings in the current code. LLVM Coverage ReportMeasured on commit 4a2b779.
Changed lines: Changed C/C++ lines covered: 597/612 (97.55%) · Uncovered code |
…k info Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
📊 Cloud Performance Report ✅ AI verdict: This PR reworks the distributed-plan streaming exchange (serialization moved onto per-stream transforms, a new send-queue in the exchange sink, plus new profile events and metrics). None of that code runs for a standard single-node ClickBench query. The one flagged row, Q34 at -5.2%, was already suppressed deterministically as within master's current variance band, and the diff gives no plausible mechanism to move it, so it reads as noise rather than a PR effect. No real regressions or improvements are attributable to this change. clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
…ng from the header Co-Authored-By: Claude Fable 5.1 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes32 object files changed (+289.71 KiB total), 1 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units861 translation units recompiled, 6175 s compile time in total, 860 of them have a recent master baseline. Symbol sizes
|
A round-robin resize to `max_threads` multiplies the partial aggregation tables and their merge. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ueries Co-Authored-By: Claude Fable 5.1 <[email protected]>
…y closes and broadcasts Co-Authored-By: Claude Fable 5.1 <[email protected]>
When a distributed query plan sends data to other nodes, each destination has one exchange sink, and that sink serialized and compressed all the data for its destination on one thread. With few destinations this becomes the bottleneck of the sending task: with 3 workers and 3 shuffle buckets, the reader task's 3 sinks were busy most of the time while its read streams waited on them.
Now the exchange serializes on every pipeline stream before the streams of a destination are merged into its sink, and the sink only sends the ready packets. This applies to the shuffle, the unsorted gather and the broadcast; the sorted gather has to merge first, so it stays as it was. The broadcast serializes each chunk once and its sinks share the packet instead of each serializing the same chunk. The bytes on the wire are unchanged. In-memory and file-based exchanges keep working with plain chunks; only the stream layout of the keyless scatter changed for them, to the one the keyed scatter already used.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Distributed query plans (
make_distributed_plan) now serialize the data sent between nodes on all threads of a task instead of one thread per destination. This removes a bottleneck when a query runs on a small number of workers.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/119067]
Version info
26.9.1.1466(included in26.9and later)