Skip to main content

Module physical

Module physical 

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.

operator defines the execution contracts, operators implements the concrete sources and stages, and pipeline compiles and runs them.

Modules§

operator
Contracts and execution context for pipeline sources and operators.
optimizer
Static rewrite rules for physical plans.
pipeline
Push-based execution of physical plans as pipelines.

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.
Filter
Keeps only the selected rows of its child.
FilterData
Operator-specific data for a Filter plan.
LegacyStats
Data alongside a legacy vortex.stats zone table, whose fields are named by Stat rather than by aggregate function.
LegacyStatsData
Legacy-stats-plan-specific data.
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.
Share
Produces its child’s whole value once per split, as a SharedArray that the split’s later scans reuse.
ShareData
Operator-specific data for a Share plan.
Take
Indexes values by codes, with children ordered as [codes, values].
Zoned
Reads data alongside the zone statistics summarising it.
ZonedData
Zoned-plan-specific data.

Traits§

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

Functions§

lower
Lowers layout into a physical plan.
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.
FilterPlan
A plan that keeps only the selected rows of its child.
LegacyStatsPlan
A plan that pairs data with a legacy stats zone table.
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.
SharePlan
A plan that shares its child’s value between executions.
TakePlan
A plan that indexes one child by another.
ZonedPlan
A plan that pairs data with its zone statistics or represents a zone-backed pruning proof.