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

Function any

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

Source from the content-addressed store, hash-verified

211}
212
213fn any<'a, I>(datums: I) -> Datum<'a>
214where
215 I: IntoIterator<Item = Datum<'a>>,
216{
217 datums
218 .into_iter()
219 .fold(Datum::False, |state, next| match (state, next) {
220 (Datum::True, _) | (_, Datum::True) => Datum::True,
221 (Datum::Null, _) | (_, Datum::Null) => Datum::Null,
222 _ => Datum::False,
223 })
224}
225
226fn all<'a, I>(datums: I) -> Datum<'a>
227where

Callers 15

run_fragmentMethod · 0.85
is_connection_errorFunction · 0.85
assert_pod_propertiesFunction · 0.85
validateMethod · 0.85
checkMethod · 0.85
is_regressionFunction · 0.85
workflow_defaultFunction · 0.85
run_testFunction · 0.85
workflow_mz_not_runningFunction · 0.85
eval_datumsMethod · 0.85

Calls 2

foldMethod · 0.80
into_iterMethod · 0.45

Tested by 1

assert_pod_propertiesFunction · 0.68