Skip to main content

Module execution

Module execution 

Source
Expand description

The planners of a V2 scan, and the prepared plans they run.

A PreparedScan holds a scan’s plans over one file. An engine composes the planners over it and drives them: a PrunePlanner evaluates the filter’s pruning plans over the scan’s rows and emits the planner it was built to continue into, with the rows they keep; a ChunkPlanner cuts those rows into chunks and spawns a FilterPlanner or a ProjectionPlanner per chunk; a filter planner runs its chunk’s conjuncts and emits a projection planner for the rows that survive; a projection planner emits one morsel per piece of its rows. A planner only says what it needs, compute or reads; where either runs is the engine’s driver’s decision.

Modules§

cache
Plans, decoded values, and retained bytes shared by repeated scans of one input.
driver
Drives a prepared scan on the session’s runtime.
filter_expr
Adaptive ordering and existing dynamic-filter tracking for scan conjuncts.
operator
Contracts and execution context for pipeline sources and operators.
pipeline
Push-based execution of physical plans as pipelines.
planning
Composable scan planning through explicit IO and CPU state machines.

Structs§

ChunkPlanner
Emits one planner per chunk of a scan’s rows, in row order, each spawned as independent so the driver may run it beside the others. A chunk none of whose rows is selected and kept is never planned.
FilterPlans
Plans and adaptive conjunct ordering shared by every chunk of a scan.
PreparedScan
A scan’s plans over one file, built once from the file’s footer and read by every planner of the scan. Nothing here touches a segment, and no planner plans again.
PrunePlanner
Evaluates the filter’s pruning plans over the scan’s rows and emits the planner it was built to continue into, with the rows no plan pruned. The zone maps are the only reads, started together. Rows every plan prunes end the scan here: nothing is emitted. A filter without pruning plans emits the next planner at once.
SegmentLocation
Where a segment’s bytes live in its source.

Type Aliases§

PruneNext
The planner a prune planner continues into, given the rows pruning kept, or None when no pruning plan ran.