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

Function jsonb_array_elements

src/expr/src/relation/func.rs:2936–2942  ·  view source on GitHub ↗
(a: Datum<'a>)

Source from the content-addressed store, hash-verified

2934}
2935
2936fn jsonb_array_elements<'a>(a: Datum<'a>) -> impl Iterator<Item = (Row, Diff)> + 'a {
2937 let list = match a {
2938 Datum::List(list) => list,
2939 _ => mz_repr::DatumList::empty(),
2940 };
2941 list.iter().map(move |e| (Row::pack_slice(&[e]), Diff::ONE))
2942}
2943
2944fn jsonb_array_elements_stringify<'a>(
2945 a: Datum<'a>,

Callers 1

evalMethod · 0.85

Calls 2

mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected