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

Method actually_perform_transform

src/transform/src/will_distinct.rs:44–64  ·  view source on GitHub ↗
(
        &self,
        relation: &mut MirRelationExpr,
        ctx: &mut TransformCtx,
    )

Source from the content-addressed store, hash-verified

42 fields(path.segment = "will_distinct")
43 )]
44 fn actually_perform_transform(
45 &self,
46 relation: &mut MirRelationExpr,
47 ctx: &mut TransformCtx,
48 ) -> Result<(), TransformError> {
49 // Perform bottom-up equivalence class analysis.
50 use crate::analysis::DerivedBuilder;
51 let mut builder = DerivedBuilder::new(ctx.features);
52 builder.require(NonNegative);
53 let derived = builder.visit(relation);
54 let derived = derived.as_view();
55
56 self.apply(
57 relation,
58 derived,
59 ctx.features.enable_will_distinct_propagation,
60 );
61
62 mz_repr::explain::trace_plan(&*relation);
63 Ok(())
64 }
65}
66
67impl WillDistinct {

Callers

nothing calls this directly

Calls 5

trace_planFunction · 0.85
as_viewMethod · 0.80
requireMethod · 0.45
visitMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected