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. 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§

pub use crate::execution::operator;
pub use crate::execution::pipeline;
pub use optimize::optimize;

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.
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.
LazyPlanRef
A plan child that may be built on first access.
ListPack
Assembles a list from slots [elements, offsets, validity], with validity present exactly when the list is nullable.
ListPackData
Operator-specific list assembly data.
Pack
Assembles a struct from a validity slot followed by one slot per field.
PackData
Operator-specific struct assembly data.
Plan
A typed, shared handle to a plan operator.
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.
PlanSlots
The fixed-position child slots of a plan.
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.
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 slots [codes, values].
Zoned
Reads data alongside the zone statistics summarising it.
ZonedData
Zoned-plan-specific data.

Enums§

PackSlot
A struct field or its validity within a pack plan.

Traits§

PlanTreeExtractor
Contributes one composable dimension of information to tree nodes.
PlanVTable
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§

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.
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.
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.