Expand description
Common-subexpression-elimination pass.
Two-level CSE:
-
Plan-level: identical
Subquery/Exists/InSubquerybodies (by canonical explain string) are hoisted intoCte+CteRefpairs. -
Intra-expression: repeated non-trivial subexpressions inside a
Filterpredicate are assigned a__cse_Nalias and materialised in a newComputenode that wraps theFilter.
Structs§
- Common
Subexpr Elimination - Extract common subexpressions into
Computebindings (intra-expression) and hoist identical subquery bodies into CTEs (plan-level).