MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / normalize_lets

Function normalize_lets

src/transform/src/normalize_lets.rs:37–42  ·  view source on GitHub ↗

Normalize `Let` and `LetRec` structure.

(
    expr: &mut MirRelationExpr,
    features: &OptimizerFeatures,
)

Source from the content-addressed store, hash-verified

35
36/// Normalize `Let` and `LetRec` structure.
37pub fn normalize_lets(
38 expr: &mut MirRelationExpr,
39 features: &OptimizerFeatures,
40) -> Result<(), crate::TransformError> {
41 catch_unwind_optimize(|| NormalizeLets::new(false).action(expr, features))
42}
43
44/// Install replace certain `Get` operators with their `Let` value.
45#[derive(Debug)]

Callers 8

optimizeMethod · 0.85
optimizeMethod · 0.85
optimizeMethod · 0.85
optimizeMethod · 0.85
optimizeMethod · 0.85
as_explain_multi_planMethod · 0.85

Calls 2

catch_unwind_optimizeFunction · 0.85
actionMethod · 0.45

Tested by 1