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

Method map_expr_to_local

src/expr/src/relation/join_input_mapper.rs:184–189  ·  view source on GitHub ↗

Takes an expression from the global context and creates a new version where column references have been remapped to the local context. Assumes that all columns in `expr` are from the same input.

(&self, mut expr: C)

Source from the content-addressed store, hash-verified

182 /// where column references have been remapped to the local context.
183 /// Assumes that all columns in `expr` are from the same input.
184 pub fn map_expr_to_local<C: Columns + Sized>(&self, mut expr: C) -> C {
185 expr.visit_columns(|c| {
186 *c -= self.prior_arities[self.input_relation[*c]];
187 });
188 expr
189 }
190
191 /// Takes an expression from the local context of the `index`th input and
192 /// creates a new version where column references have been remapped to the

Callers 7

consequence_for_inputMethod · 0.80
find_redundancyFunction · 0.80
actionMethod · 0.80
optimize_order_forMethod · 0.80
order_inputMethod · 0.80
semijoin_bijectionFunction · 0.80

Calls 1

visit_columnsMethod · 0.45

Tested by

no test coverage detected