pub trait UDFCoercionExt {
// Required methods
fn name(&self) -> &str;
fn signature(&self) -> &Signature;
fn coerce_types(&self, arg_types: &[DataType]) -> Result<Vec<DataType>>;
}Expand description
Extension trait to unify common functionality between ScalarUDF, AggregateUDF
and WindowUDF for use by signature coercion functions.
Required Methods§
Sourcefn name(&self) -> &str
fn name(&self) -> &str
Should delegate to ScalarUDF::name, AggregateUDF::name or WindowUDF::name.
Sourcefn signature(&self) -> &Signature
fn signature(&self) -> &Signature
Should delegate to ScalarUDF::signature, AggregateUDF::signature
or WindowUDF::signature.
Sourcefn coerce_types(&self, arg_types: &[DataType]) -> Result<Vec<DataType>>
fn coerce_types(&self, arg_types: &[DataType]) -> Result<Vec<DataType>>
Should delegate to ScalarUDF::coerce_types, AggregateUDF::coerce_types
or WindowUDF::coerce_types.