datafusion_expr::expr_fn

Function create_udwf

Source
pub fn create_udwf(
    name: &str,
    input_type: DataType,
    return_type: Arc<DataType>,
    volatility: Volatility,
    partition_evaluator_factory: PartitionEvaluatorFactory,
) -> WindowUDF
Expand description

Creates a new UDWF with a specific signature, state type and return type.

The signature and state type must match the PartitionEvaluator’s implementation`.