Expand description
Drives a prepared scan on the session’s runtime.
A planner says what it needs: compute, or reads. This driver decides where each runs. It
composes the planners over a PreparedScan, the pruning plans first when the scan has a
filter and the chunks of the rows they keep after, and runs them on planning runs it owns:
the root run stepped on spawn_cpu tasks as the stream is polled, each spawned chunk on a
task of its own, up to the concurrency, or on the root run when driving chunks inline. Each
root reads through its own IO session. Per-batch output mapping runs on the task that
produced the batch, beside the scan’s other chunks.
Structs§
- Chunk
Budget - A bound on the chunks in flight that the scans of several drivers share, so a scan with more work left can use the slots the others leave idle.
- Scan
Driver - Runs a scan on the session’s runtime.