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

Method remap

src/sql/src/plan/transform_hir.rs:337–342  ·  view source on GitHub ↗

Changes column references in `self` by the given remapping. Panics if a referred column is not present in `idx_map`!

(mut self, idx_map: &BTreeMap<usize, usize>)

Source from the content-addressed store, hash-verified

335 /// Changes column references in `self` by the given remapping.
336 /// Panics if a referred column is not present in `idx_map`!
337 fn remap(mut self, idx_map: &BTreeMap<usize, usize>) -> HirScalarExpr {
338 self.visit_columns_referring_to_root_level_mut(&mut |c| {
339 *c = idx_map[c];
340 });
341 self
342 }
343}
344
345/// # Aims and scope

Callers 1

fuse_window_functionsFunction · 0.80

Tested by

no test coverage detected