Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
make_scalar_function in datafusion::physical_expr::functions - Rust
[go: Go Back, main page]

pub fn make_scalar_function<F>(
    inner: F,
) -> Arc<dyn Fn(&[ColumnarValue]) -> Result<ColumnarValue, DataFusionError> + Send + Sync>
where F: Fn(&[Arc<dyn Array>]) -> Result<Arc<dyn Array>, DataFusionError> + Sync + Send + 'static,
👎Deprecated since 36.0.0: Implement your function directly in terms of ColumnarValue or use ScalarUDF instead
Expand description

Decorates a function to handle ScalarValues 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.