Expand description
ScalarUDF: Scalar User Defined Functions
Structs§
- Aliased
ScalarUDF 🔒Impl - ScalarUDF that adds an alias to the underlying function. It is better to
implement
ScalarUDFImpl, which supports aliases, directly if possible. - Extendable
Expr 🔒Schema - A
&dyn ExprSchemawrapper that supports adding the parameters of a lambda - Return
Field Args - Information about arguments passed to the function
- Scalar
Function Args - Arguments passed to
ScalarUDFImpl::invoke_with_argswhen invoking a scalar function. - Scalar
Function Lambda Arg - A lambda argument to a ScalarFunction
- ScalarUDF
- Logical representation of a Scalar User Defined Function.
Enums§
- Value
OrLambda - Value
OrLambda Field - A tagged Field indicating whether it correspond to a value or a lambda argument
- Value
OrLambda Parameter
Traits§
- Extend
Schema - ScalarUDF
Impl - Trait for implementing user defined scalar functions.
Functions§
- lambda_
parameters 🔒 - merge_
captures_ with_ args - Merge the lambda body captured columns with it’s arguments Datafusion relies on an unspecified field ordering implemented in this function As such, this is the only correct way to merge the captured values with the arguments The number of args should not be lower than the number of params
- merge_
captures_ with_ boxed_ lazy_ args - Variation of merge_captures_with_lazy_args that take boxed closures
- merge_
captures_ with_ lazy_ args - Lazy version of merge_captures_with_args that receives closures to compute the arguments, and calls only the necessary to match the number of params