Function mz_sql::plan::normalize_subqueries

source ยท
pub fn normalize_subqueries<'a>(
    expr: &'a mut HirRelationExpr,
) -> Result<(), RecursionLimitError>
Expand description

Normalize the way subqueries appear in HirScalarExpr::Exists or HirScalarExpr::Select variants.

After the transform is applied, subqueries are pulled as a value in a let binding enclosing the HirRelationExpr parent of the HirScalarExpr::Exists or HirScalarExpr::Select where the subquery appears, and the corresponding variant references the new binding with a HirRelationExpr::Get.