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