common_query::function

Function make_scalar_function

source
pub fn make_scalar_function<F>(inner: F) -> ScalarFunctionImplementation
where F: Fn(&[VectorRef]) -> Result<VectorRef> + Sync + Send + 'static,
Expand description

decorates a function to handle ScalarValues by converting them to arrays before calling the function and vice-versa after evaluation.