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

Method flat_map

src/expr/src/relation.rs:1197–1203  ·  view source on GitHub ↗

Like `map`, but yields zero-or-more output rows per input row

(self, func: TableFunc, exprs: Vec<MirScalarExpr>)

Source from the content-addressed store, hash-verified

1195
1196 /// Like `map`, but yields zero-or-more output rows per input row
1197 pub fn flat_map(self, func: TableFunc, exprs: Vec<MirScalarExpr>) -> Self {
1198 MirRelationExpr::FlatMap {
1199 input: Box::new(self),
1200 func,
1201 exprs,
1202 }
1203 }
1204
1205 /// Retain only the rows satisfying each of several predicates.
1206 pub fn filter<I>(mut self, predicates: I) -> Self

Callers 15

render_upload_operatorFunction · 0.45
listMethod · 0.45
flatten_associativeMethod · 0.45
undistribute_and_orMethod · 0.45
flat_map_modifyFunction · 0.45
expand_countsFunction · 0.45
evalMethod · 0.45
global_keysMethod · 0.45
consequence_for_inputMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_merge_treeFunction · 0.36
test_round_tripFunction · 0.36