Expand description
Atomic coordinator-side assembly for distributed SQL reads.
Range workers never expose a client-visible stream directly. This module accepts only already fenced range payloads, verifies that every planned range has acknowledged cleanup, and then produces an immutable result.
Structs§
- Assembler
Row - One final-projection row emitted by a range worker during preparation.
- Distributed
Read Budget - Bounds coordinator-owned materialization. Spill is intentionally not implemented yet; a non-zero spill budget remains a declared upper bound, never permission for an unbounded temporary file.
- Exact
Aggregate Partial - One group-local vector of exact accumulator states.
- Exact
Aggregate Plan - Aggregate assembly whose worker states can be merged exactly.
- Global
Order - One normalized global ORDER BY key. Values are produced by a worker’s closed descriptor; this type deliberately carries no executable SQL.
- Global
Result Assembler - Coordinator-owned atomic result assembler.
- Ordered
Aggregate Input - One raw aggregate input. The worker has already evaluated the closed descriptor’s aggregate arguments; the coordinator only replays values.
- Ordered
Aggregate Plan - Aggregate assembly that must replay globally ordered inputs to preserve local floating-point, DISTINCT, and string-aggregate semantics.
- Prepared
Result - Immutable result made visible only after every range has cleaned up.
- Prepared
Result Stream - Reader for a
PreparedResult. It has no transport/session dependency. - Range
Assembler Input - All preparation payloads and terminal evidence for one planned range.
- Result
Presentation - Final shaping shared by row and aggregate assembly.
- RowMerge
Plan - Row-mode assembly for already projected range rows.
Enums§
- Assembler
Terminal Status - Observable lifecycle state. A failed preparation never retains a prepared result and therefore cannot be opened as a row stream.
- Assembly
Plan - Closed assembly mode selected by the SQL catalog/coordinator.
- Distributed
Read Assembly Error - Classified preparation failure. No variant carries partial SQL rows.
- Range
Assembler Payload - Typed payloads accepted from a completed range session.
- Range
Terminal - Worker terminal state supplied by the transport coordinator. A completed range is usable only when it explicitly acknowledges cleanup.