Function datafusion_physical_plan::functions::make_scalar_function
source · pub fn make_scalar_function<F>(
inner: F,
) -> Arc<dyn Fn(&[ColumnarValue]) -> Result<ColumnarValue, DataFusionError> + Sync + Send>
👎Deprecated since 36.0.0: Implement your function directly in terms of ColumnarValue or use
ScalarUDF
insteadExpand description
Decorates a function to handle ScalarValue
s by converting them to arrays before calling the function
and vice-versa after evaluation.
Note that this function makes a scalar function with no arguments or all scalar inputs return a scalar.
That’s said its output will be same for all input rows in a batch.