Module physical_planner

Module physical_planner 

Source
Expand description

Planner for LogicalPlan to ExecutionPlan

StructsΒ§

DefaultPhysicalPlanner
Default single node physical query planner that converts a LogicalPlan to an ExecutionPlan suitable for execution.
ExecutionPlanChild πŸ”’
InvariantChecker πŸ”’
Check ExecutionPlan invariants per InvariantLevel.
LogicalNode πŸ”’
OptimizationInvariantChecker πŸ”’

EnumsΒ§

ChildrenContainer πŸ”’
To avoid needing to pass single child wrapped in a Vec for nodes with only one child.
NodeState πŸ”’
PlanAsyncExpr πŸ”’
PlannedExprResult πŸ”’

TraitsΒ§

ExtensionPlanner
This trait exposes the ability to plan an ExecutionPlan out of a LogicalPlan.
PhysicalPlanner
Physical query planner that converts a LogicalPlan to an ExecutionPlan suitable for execution.

FunctionsΒ§

create_aggregate_expr_and_maybe_filter
Create an aggregate expression from a logical expression or an alias
create_aggregate_expr_with_name_and_maybe_filter
Create an aggregate expression with a name from a logical expression
create_cube_physical_expr πŸ”’
Expand and align a CUBE expression. This is a special case of GROUPING SETS (see https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-GROUPING-SETS)
create_rollup_physical_expr πŸ”’
Expand and align a ROLLUP expression. This is a special case of GROUPING SETS (see https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-GROUPING-SETS)
create_window_expr
Create a window expression from a logical expression or an alias
create_window_expr_with_name
Create a window expression with a name from a logical expression
get_null_physical_expr_pair πŸ”’
For a given logical expr, get a properly typed NULL ScalarValue physical expression
get_physical_expr_pair πŸ”’
is_window_frame_bound_valid
Check if window bounds are valid after schema information is available, and window_frame bounds are casted to the corresponding column type. queries like: OVER (ORDER BY a RANGES BETWEEN 3 PRECEDING AND 5 PRECEDING) OVER (ORDER BY a RANGES BETWEEN INTERVAL β€˜3 DAY’ PRECEDING AND β€˜5 DAY’ PRECEDING) are rejected
merge_grouping_set_physical_expr πŸ”’
Expand and align a GROUPING SET expression. (see https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-GROUPING-SETS)
qualify_join_schema_sides πŸ”’
Qualifies the fields in a join schema with β€œleft” and β€œright” qualifiers without mutating the original schema. This function should only be used when the join inputs have already been requalified earlier in try_new_with_project_input.
tuple_err πŸ”’

Type AliasesΒ§

AggregateExprWithOptionalArgs πŸ”’