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

Method output_arity

src/expr/src/relation/func.rs:3968–3996  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

3966 }
3967
3968 pub fn output_arity(&self) -> usize {
3969 match self {
3970 TableFunc::AclExplode => 4,
3971 TableFunc::MzAclExplode => 4,
3972 TableFunc::JsonbEach => 2,
3973 TableFunc::JsonbEachStringify => 2,
3974 TableFunc::JsonbObjectKeys => 1,
3975 TableFunc::JsonbArrayElements => 1,
3976 TableFunc::JsonbArrayElementsStringify => 1,
3977 TableFunc::RegexpExtract(a) => a.capture_groups_len(),
3978 TableFunc::CsvExtract(n_cols) => *n_cols,
3979 TableFunc::GenerateSeriesInt32 => 1,
3980 TableFunc::GenerateSeriesInt64 => 1,
3981 TableFunc::GenerateSeriesUnoptimized => 1,
3982 TableFunc::GenerateSeriesTimestamp => 1,
3983 TableFunc::GenerateSeriesTimestampTz => 1,
3984 TableFunc::GenerateSubscriptsArray => 1,
3985 TableFunc::GuardSubquerySize { .. } => 1,
3986 TableFunc::RepeatRow => 0,
3987 TableFunc::RepeatRowNonNegative => 0,
3988 TableFunc::UnnestArray { .. } => 1,
3989 TableFunc::UnnestList { .. } => 1,
3990 TableFunc::UnnestMap { .. } => 2,
3991 TableFunc::Wrap { width, .. } => *width,
3992 TableFunc::TabletizedScalar { relation, .. } => relation.column_types.len(),
3993 TableFunc::RegexpMatches => 1,
3994 TableFunc::WithOrdinality(WithOrdinality { inner }) => inner.output_arity() + 1,
3995 }
3996 }
3997
3998 pub fn empty_on_null_input(&self) -> bool {
3999 match self {

Callers 8

arityMethod · 0.80
applied_toMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80
deriveMethod · 0.80
actionMethod · 0.80
actionMethod · 0.80

Calls 2

capture_groups_lenMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected