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

Method unary

src/sql/src/func.rs:273–278  ·  view source on GitHub ↗

Builds an operation that takes one argument.

(f: F)

Source from the content-addressed store, hash-verified

271
272 /// Builds an operation that takes one argument.
273 fn unary<F>(f: F) -> Operation<R>
274 where
275 F: Fn(&ExprContext, HirScalarExpr) -> Result<R, PlanError> + Send + Sync + 'static,
276 {
277 Self::variadic(move |ecx, exprs| f(ecx, exprs.into_element()))
278 }
279
280 /// Builds an operation that takes one argument and an order_by.
281 fn unary_ordered<F>(f: F) -> Operation<R>

Callers 8

upsert_thinningFunction · 0.45
renderFunction · 0.45
renderFunction · 0.45
consolidate_named_ifMethod · 0.45
consolidate_namedMethod · 0.45
with_start_signalMethod · 0.45
log_dataflow_errorsMethod · 0.45

Calls 1

into_elementMethod · 0.80

Tested by

no test coverage detected