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. The common child container can initialize individual slots lazily.
Modules§
- optimizer
- Static rewrite rules for physical plans.
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. - List
Pack - Assembles a list from elements and offsets, plus an optional trailing validity child.
- List
Pack Data - Operator-specific list assembly data.
- Pack
- Assembles a struct from one child per field, plus an optional trailing validity child.
- Pack
Data - Operator-specific struct assembly data.
- Plan
- A typed, shared handle to a plan operator.
- Plan
Children - Ordered plan children that may be initialized one slot at a time.
- 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
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. - Segment
Scan - Reads one serialized array segment.
- Segment
Scan Data - Data needed to read and decode a single segment.
- Take
- Indexes
valuesbycodes, with children ordered as[codes, values].
Traits§
- Plan
Tree Extractor - Contributes one composable dimension of information to tree nodes.
- PlanV
Table - Operator-specific behavior for a typed
Plan.
Functions§
- lower
- Constructs a physical-plan fixture from
layoutfor tests. - optimize
- Optimizes
plan, preserving its dtype and row domain. - plan_
row_ idx_ expression - Plans an expression over a data source and its global row-index domain.
- row_
idx_ dtype - Returns the dtype of a generated row index.
Type Aliases§
- Concat
Plan - A plan that concatenates its children row-wise.
- Eval
Plan - A plan that applies an expression to 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.
- Segment
Scan Plan - A plan that reads one serialized array segment.
- Take
Plan - A plan that indexes one child by another.