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

Method transform

src/transform/src/lib.rs:1035–1047  ·  view source on GitHub ↗

Optimizes the supplied relation expression in place, using available arrangements. This method should only be called with non-empty `indexes` when optimizing a dataflow, as the optimizations may lock in the use of arrangements that may cease to exist.

(
        &self,
        relation: &mut MirRelationExpr,
        args: &mut TransformCtx,
    )

Source from the content-addressed store, hash-verified

1033 /// This method should only be called with non-empty `indexes` when optimizing a dataflow,
1034 /// as the optimizations may lock in the use of arrangements that may cease to exist.
1035 fn transform(
1036 &self,
1037 relation: &mut MirRelationExpr,
1038 args: &mut TransformCtx,
1039 ) -> Result<(), TransformError> {
1040 args.update_last_hash(relation);
1041
1042 for transform in self.transforms.iter() {
1043 transform.transform(relation, args)?;
1044 }
1045
1046 Ok(())
1047 }
1048}

Callers 3

apply_transformsMethod · 0.45
optimizeMethod · 0.45

Calls 2

update_last_hashMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected