pub fn plan_ctes(
qcx: &mut QueryContext<'_>,
q: &Query<Aug>,
) -> Result<Vec<(LocalId, HirRelationExpr, Option<CteDesc>)>, PlanError>
Expand description
Creates plans for CTEs and introduces them to qcx.ctes
.
Returns for each identifier a planned HirRelationExpr
value, and an optional
shadowed value that can be reinstalled once the planning has completed.