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

Function jsonb_agg

src/expr/src/relation/func.rs:275–283  ·  view source on GitHub ↗
(datums: I, temp_storage: &'a RowArena, order_by: &[ColumnOrder])

Source from the content-addressed store, hash-verified

273}
274
275fn jsonb_agg<'a, I>(datums: I, temp_storage: &'a RowArena, order_by: &[ColumnOrder]) -> Datum<'a>
276where
277 I: IntoIterator<Item = Datum<'a>>,
278{
279 let datums = order_aggregate_datums(datums, order_by);
280 temp_storage.make_datum(|packer| {
281 packer.push_list(datums.into_iter().filter(|d| !d.is_null()));
282 })
283}
284
285fn dict_agg<'a, I>(datums: I, temp_storage: &'a RowArena, order_by: &[ColumnOrder]) -> Datum<'a>
286where

Callers 1

eval_datumsMethod · 0.85

Calls 6

order_aggregate_datumsFunction · 0.85
make_datumMethod · 0.80
push_listMethod · 0.80
filterMethod · 0.45
into_iterMethod · 0.45
is_nullMethod · 0.45

Tested by

no test coverage detected