Expand description
Physical plans for scans.
A plan is a tree of physical operators over a row domain. Operator identity and operator-specific state do not depend on the source layout kind, so rewrites can reason about a plan’s shape alone. Children live in fixed-position slots, each of which can be built lazily.
operator defines execution contracts. Built-ins own their sources and stages, while
pipeline compiles and runs them.
Re-exports§
Modules§
- optimize
- Plan optimization.
- optimizer
- Compatibility exports for plan rewrite rules.
- partition
- We have Plans which tell us how data is stored and how to read it. An Expression is a subset of a Plan which tells us how to read the data but doesn’t know how the data is stored.
Structs§
- Concat
- Concatenates its children row-wise.
- Concat
Data - Row offsets of each concatenated child.
- Eval
- Applies an expression to the output of its child.
- Eval
Data - The expression evaluated by an
Eval. - Filter
- Keeps only the selected rows of its child.
- Filter
Data - Operator-specific data for a
Filterplan. - Lazy
Plan Ref - A plan child that may be built on first access.
- List
Pack - Assembles a list from slots
[elements, offsets, validity], with validity present exactly when the list is nullable. - List
Pack Data - Operator-specific list assembly data.
- Pack
- Assembles a struct from a validity slot followed by one slot per field.
- Pack
Data - Operator-specific struct assembly data.
- Plan
- A typed, shared handle to a plan operator.
- Plan
Indented Formatter - Access to a formatter together with the indentation for detail lines.
- Plan
Parts - Pieces used to construct a typed plan.
- PlanRef
- Shared, erased handle to a plan operator.
- Plan
Slots - The fixed-position child slots of a plan.
- Plan
Summary Extractor - Adds the plan’s display representation to a tree node’s header.
- Plan
Tree Context - Tree traversal context that records only the current depth.
- Plan
Tree Display - Composable display builder for a physical plan tree.
- RowIdx
- Generates global row indices for the current execution row domain.
- RowIdx
Data - Operator-specific data for a
RowIdxplan. - Share
- Produces its child’s whole value once per split, as a
SharedArraythat the split’s later scans reuse. - Share
Data - Operator-specific data for a
Shareplan. - Take
- Indexes
valuesbycodes, with slots[codes, values]. - Zoned
- Reads data alongside the zone statistics summarising it.
- Zoned
Data - Zoned-plan-specific data.
Enums§
- Pack
Slot - A struct field or its validity within a pack plan.
Traits§
- Plan
Tree Extractor - Contributes one composable dimension of information to tree nodes.
- PlanV
Table - Operator-specific behavior for a typed
Plan.
Functions§
- register_
pack_ partition_ rules - Registers expression partitioning rules for pack plans.
- register_
row_ idx_ partition_ rules - Registers expression partitioning rules for row-index plans.
Type Aliases§
- Concat
Plan - A plan that concatenates its children row-wise.
- Eval
Plan - A plan that applies an expression to its child.
- Filter
Plan - A plan that keeps only the selected rows of its child.
- List
Pack Plan - A plan that assembles a list from its children.
- Pack
Plan - A plan that assembles a struct from its children.
- PlanId
- A unique identifier for a plan operator.
- RowIdx
Plan - A childless source of global row indices supplied by its execution row domain.
- Share
Plan - A plan that shares its child’s value between executions.
- Take
Plan - A plan that indexes one child by another.
- Zoned
Plan - A plan that pairs data with its zone statistics or represents a zone-backed pruning proof.