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

Function all

src/expr/src/relation/func.rs:226–237  ·  view source on GitHub ↗
(datums: I)

Source from the content-addressed store, hash-verified

224}
225
226fn all<'a, I>(datums: I) -> Datum<'a>
227where
228 I: IntoIterator<Item = Datum<'a>>,
229{
230 datums
231 .into_iter()
232 .fold(Datum::True, |state, next| match (state, next) {
233 (Datum::False, _) | (_, Datum::False) => Datum::False,
234 (Datum::Null, _) | (_, Datum::Null) => Datum::Null,
235 _ => Datum::True,
236 })
237}
238
239fn string_agg<'a, I>(datums: I, temp_storage: &'a RowArena, order_by: &[ColumnOrder]) -> Datum<'a>
240where

Callers 15

check_logMethod · 0.85
eval_datumsMethod · 0.85
bench_acl_itemFunction · 0.85
bench_mz_acl_itemFunction · 0.85
interesting_datumsMethod · 0.85
arbitrary_withMethod · 0.85
runFunction · 0.85
clusterMethod · 0.85

Calls 2

foldMethod · 0.80
into_iterMethod · 0.45

Tested by 2

check_pgwireFunction · 0.68
test_can_clone_falseMethod · 0.68