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

Function list_concat

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

Source from the content-addressed store, hash-verified

429}
430
431fn list_concat<'a, I>(datums: I, temp_storage: &'a RowArena, order_by: &[ColumnOrder]) -> Datum<'a>
432where
433 I: IntoIterator<Item = Datum<'a>>,
434{
435 let datums = order_aggregate_datums(datums, order_by);
436 temp_storage.make_datum(|packer| {
437 packer.push_list(datums.into_iter().map(|d| d.unwrap_list().iter()).flatten());
438 })
439}
440
441/// The expected input is in the format of `[((OriginalRow, [EncodedArgs]), OrderByExprs...)]`
442/// The output is in the format of `[result_value, original_row]`.

Callers 1

eval_datumsMethod · 0.85

Calls 8

order_aggregate_datumsFunction · 0.85
make_datumMethod · 0.80
push_listMethod · 0.80
unwrap_listMethod · 0.80
flattenMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected