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
ScalarFunctionImplementation in datafusion::logical_expr - Rust
[go: Go Back, main page]

Type Alias datafusion::logical_expr::ScalarFunctionImplementation

source ·
pub type ScalarFunctionImplementation = Arc<dyn Fn(&[ColumnarValue]) -> Result<ColumnarValue, DataFusionError> + Sync + Send>;
Expand description

Scalar function

The Fn param is the wrapped function but be aware that the function will be passed with the slice / vec of columnar values (either scalar or array) with the exception of zero param function, where a singular element vec will be passed. In that case the single element is a null array to indicate the batch’s row count (so that the generative zero-argument function can know the result array size).

Aliased Type§

struct ScalarFunctionImplementation { /* private fields */ }