Function datafusion::physical_plan::functions::make_scalar_function
source · [−]pub fn make_scalar_function<F>(
inner: F
) -> Arc<dyn Fn(&[ColumnarValue]) + Sync + Send + 'static> where
F: 'static + Fn(&[Arc<dyn Array + 'static>]) -> Result<Arc<dyn Array + 'static>, DataFusionError> + Sync + Send,
Expand description
decorates a function to handle ScalarValue
s by converting them to arrays before calling the function
and vice-versa after evaluation.