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

Function replace_bindings_from_map

src/transform/src/normalize_lets.rs:204–214  ·  view source on GitHub ↗
(
        map: BTreeMap<LocalId, (MirRelationExpr, Option<LetRecLimit>)>,
        ids: &mut Vec<LocalId>,
        values: &mut Vec<MirRelationExpr>,
        limits: &mut Vec<Option<LetRecLimit>>,
    

Source from the content-addressed store, hash-verified

202 use mz_repr::optimize::OptimizerFeatures;
203
204 pub(super) fn replace_bindings_from_map(
205 map: BTreeMap<LocalId, (MirRelationExpr, Option<LetRecLimit>)>,
206 ids: &mut Vec<LocalId>,
207 values: &mut Vec<MirRelationExpr>,
208 limits: &mut Vec<Option<LetRecLimit>>,
209 ) {
210 let (new_ids, new_values, new_limits) = map_to_3vecs(map);
211 *ids = new_ids;
212 *values = new_values;
213 *limits = new_limits;
214 }
215
216 pub(super) fn map_to_3vecs(
217 map: BTreeMap<LocalId, (MirRelationExpr, Option<LetRecLimit>)>,

Callers 3

post_order_harvest_letsFunction · 0.85
harvest_non_recursiveFunction · 0.85
inline_lets_coreFunction · 0.85

Calls 1

map_to_3vecsFunction · 0.85

Tested by

no test coverage detected