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

Method unary_ordered

src/sql/src/func.rs:281–292  ·  view source on GitHub ↗

Builds an operation that takes one argument and an order_by.

(f: F)

Source from the content-addressed store, hash-verified

279
280 /// Builds an operation that takes one argument and an order_by.
281 fn unary_ordered<F>(f: F) -> Operation<R>
282 where
283 F: Fn(&ExprContext, HirScalarExpr, Vec<ColumnOrder>) -> Result<R, PlanError>
284 + Send
285 + Sync
286 + 'static,
287 {
288 Self::new(move |ecx, cexprs, params, order_by| {
289 let exprs = coerce_args_to_types(ecx, cexprs, params)?;
290 f(ecx, exprs.into_element(), order_by)
291 })
292 }
293
294 /// Builds an operation that takes two arguments.
295 fn binary<F>(f: F) -> Operation<R>

Callers

nothing calls this directly

Calls 2

coerce_args_to_typesFunction · 0.85
into_elementMethod · 0.80

Tested by

no test coverage detected