Skip to main content

Module plan

Module plan 

Source
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.
ConcatData
Row offsets of each concatenated child.
Eval
Applies an expression to the output of its child.
EvalData
The expression evaluated by an Eval.
ListPack
Assembles a list from elements and offsets, plus an optional trailing validity child.
ListPackData
Operator-specific list assembly data.
Pack
Assembles a struct from one child per field, plus an optional trailing validity child.
PackData
Operator-specific struct assembly data.
Plan
A typed, shared handle to a plan operator.
PlanChildren
Ordered plan children that may be initialized one slot at a time.
PlanIndentedFormatter
Access to a formatter together with the indentation for detail lines.
PlanParts
Pieces used to construct a typed plan.
PlanRef
Shared, erased handle to a plan operator.
PlanSummaryExtractor
Adds the plan’s display representation to a tree node’s header.
PlanTreeContext
Tree traversal context that records only the current depth.
PlanTreeDisplay
Composable display builder for a physical plan tree.
RowIdx
Generates global row indices for the current execution row domain.
RowIdxData
Operator-specific data for a RowIdx plan.
SegmentScan
Reads one serialized array segment.
SegmentScanData
Data needed to read and decode a single segment.
Take
Indexes values by codes, with children ordered as [codes, values].

Traits§

PlanTreeExtractor
Contributes one composable dimension of information to tree nodes.
PlanVTable
Operator-specific behavior for a typed Plan.

Functions§

lower
Constructs a physical-plan fixture from layout for 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§

ConcatPlan
A plan that concatenates its children row-wise.
EvalPlan
A plan that applies an expression to its child.
ListPackPlan
A plan that assembles a list from its children.
PackPlan
A plan that assembles a struct from its children.
PlanId
A unique identifier for a plan operator.
RowIdxPlan
A childless source of global row indices supplied by its execution row domain.
SegmentScanPlan
A plan that reads one serialized array segment.
TakePlan
A plan that indexes one child by another.