Skip to main content

Module plan

Module plan 

Source
Expand description

LATERAL join planning: classify correlation shape and emit the appropriate SqlPlan::LateralTopK or SqlPlan::LateralLoop variant.

Constants§

LATERAL_LOOP_CAP
The maximum outer-row count allowed for LateralLoop queries.

Functions§

is_lateral_derived
True when a TableFactor is a LATERAL derived subquery.
lateral_alias_from_factor
Extract a LATERAL alias from a TableFactor::Derived.
plan_lateral_join
Plan a LATERAL subquery join.
subquery_from_factor
Extract the subquery from a TableFactor::Derived.