Skip to main content

Module plan

Module plan 

Source
Expand description

Complete SQL-to-execution-plan lowering.

OperatorTree is the specialised algebra for posting-list, graph, and fusion operations. It is intentionally not a relational algebra: forcing a SQL window frame or a mutation into a posting-list node would erase its row and command semantics. This module supplies the missing super-plan. Every SQL statement lowers to one UnifiedPlan, while query-producing statements recursively own their relational children. A physical driver can therefore use an OperatorTree as an access path inside a relational node without keeping a second top-level SQL dispatcher.

Modules§

locking
Canonical relation row marks selected by SQL locking analysis.
source_projection
Required SQL source columns and explicitly requested relation metadata.

Structs§

AssignmentPlan
ConflictPlan
CteCyclePlan
Generated cycle mark and path columns for a recursive CTE.
CtePlan
A named query child owned by a QueryPlan.
CteSearchPlan
Generated traversal-order column for a recursive CTE.
DeletePlan
ExpressionPlan
Executable scalar IR plus every query-valued descendant it owns.
InsertPlan
MergePlan
OrderPlan
ProjectionPlan
QueryBlockPlan
One SELECT block after WITH and set-operation structure has been pulled into explicit parent/child nodes.
QueryPlan
A relational query with its CTE scope and one relational root.
TableFunctionPlan
One independently resolved and bound function inside a range-function group.
UpdatePlan
ViewCheckPlan
ViewRuleInsertPlan
ViewRuleReturningPlan
ViewRuleUpdatePlan

Enums§

AccessPathPlan
Cross-paradigm access decision made after the relational and scalar portions of a query block have both been lowered.
CommandPlan
Non-query statement plans. Mutations own physical sources and scalar IR; query-bearing catalog commands own explicit query children. Typed DDL and procedural payloads contain catalog data, never a second SQL dispatcher.
ComputePlan
The SELECT-list phase chosen during lowering.
ConflictActionPlan
CtePlanBody
A relational CTE or a command whose RETURNING relation feeds its consumers.
JoinExecutionStrategy
Physical strategy selected for a relational join.
MergeWhenPlan
ProjectionTarget
Identity assigned to one projection result. SQL columns participate in ordinary name binding and wildcard expansion; internal attributes are executor-only resjunk slots addressed structurally.
RelationalPlan
Relational nodes common to ordinary SQL, retrieval SQL, and table/graph functions.
SourcePlan
The row-producing source below a query block.
UnifiedPlan
One fully lowered SQL statement.

Traits§

AggregateClassifier
Classification hook for engine-registered aggregate functions. Built-in aggregates are always recognised; the callback extends that set without making the planner depend on the engine.
ExecutablePlanOptimizer
Analyze and optimize a logical plan using metadata captured for this call.

Functions§

rewrite_scalar_expression
Visit one scalar-expression tree in post-order and rewrite each node once.