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

Method optimize

src/clusterd-test-driver/src/dataflow.rs:406–409  ·  view source on GitHub ↗

Run the MIR dataflow optimizer in [`Self::finish`] before lowering. Off by default: the builder otherwise lowers the caller's MIR faithfully (the contract above). Enable it for plans that don't lower from raw MIR — notably a `Join`, whose `implementation` defaults to `Unimplemented` and is rejected by the LIR lowering until [`mz_transform::optimize_dataflow`]'s `JoinImplementation` fills it in —

(&mut self)

Source from the content-addressed store, hash-verified

404 /// fills it in — or to reproduce the plan `environmentd` would ship for a logical
405 /// expression rather than the literal one written.
406 pub fn optimize(&mut self) -> &mut Self {
407 self.optimize = true;
408 self
409 }
410
411 /// Lower the accumulated MIR and attach persist wiring, producing the
412 /// `DataflowDescription` the compute protocol expects.

Callers 9

refine_source_mfpsMethod · 0.45
extract_mfp_afterMethod · 0.45
newMethod · 0.45
buildMethod · 0.45
completeMethod · 0.45
executeMethod · 0.45
as_collection_coreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected