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

Method build

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

Insert a MIR object to compute, bound to `id`. `expr` is wrapped via [`OptimizedMirRelationExpr::declare_optimized`]; the caller is responsible for any optimization (see the type-level contract). The object's relation type is recorded so a later [`Self::export_index`] over `id` can derive its `on_type`.

(&mut self, id: GlobalId, expr: MirRelationExpr)

Source from the content-addressed store, hash-verified

279 /// object's relation type is recorded so a later [`Self::export_index`] over `id`
280 /// can derive its `on_type`.
281 pub fn build(&mut self, id: GlobalId, expr: MirRelationExpr) -> &mut Self {
282 self.types.insert(id, expr.typ());
283 self.mir
284 .insert_plan(id, OptimizedMirRelationExpr::declare_optimized(expr));
285 self
286 }
287
288 /// Export an index `index_id` arranging `on_id` by `key_cols`.
289 ///

Callers 8

mainFunction · 0.45
count_over_indexFunction · 0.45
executeMethod · 0.45
test_create_socketsFunction · 0.45

Calls 3

insert_planMethod · 0.80
insertMethod · 0.45
typMethod · 0.45

Tested by 1

test_create_socketsFunction · 0.36