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

Method exact_match

src/sql/src/func.rs:635–637  ·  view source on GitHub ↗

Matches a `&[SqlScalarType]` derived from the user's function argument against this `ParamList`'s permitted arguments.

(&self, types: &[&SqlScalarType])

Source from the content-addressed store, hash-verified

633 /// Matches a `&[SqlScalarType]` derived from the user's function argument
634 /// against this `ParamList`'s permitted arguments.
635 fn exact_match(&self, types: &[&SqlScalarType]) -> bool {
636 types.iter().enumerate().all(|(i, t)| self[i] == **t)
637 }
638
639 /// Generates values underlying data for for `mz_catalog.mz_functions.arg_ids`.
640 fn arg_names(&self) -> Vec<&'static str> {

Callers 1

find_matchFunction · 0.80

Calls 3

allMethod · 0.80
enumerateMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected