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

Method map_expr_to_global

src/expr/src/relation/join_input_mapper.rs:194–199  ·  view source on GitHub ↗

Takes an expression from the local context of the `index`th input and creates a new version where column references have been remapped to the global context.

(&self, mut expr: C, index: usize)

Source from the content-addressed store, hash-verified

192 /// creates a new version where column references have been remapped to the
193 /// global context.
194 pub fn map_expr_to_global<C: Columns + Sized>(&self, mut expr: C, index: usize) -> C {
195 expr.visit_columns(|c| {
196 *c += self.prior_arities[index];
197 });
198 expr
199 }
200
201 /// Remap column numbers from the global to the local context.
202 /// Returns a 2-tuple `(<new column number>, <index of input>)`

Callers 5

create_fromMethod · 0.80
create_fromMethod · 0.80
joinMethod · 0.80
actionMethod · 0.80
optimize_order_forMethod · 0.80

Calls 1

visit_columnsMethod · 0.45

Tested by

no test coverage detected