snowflake.snowpark.udaf.UserDefinedAggregateFunction¶
- class snowflake.snowpark.udaf.UserDefinedAggregateFunction(handler: Union[Callable, Tuple[str, str]], name: str, return_type: DataType, input_types: List[DataType], packages: Optional[List[Union[str, module]]] = None)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/udaf.py#L53-L129)¶
Bases:
object
Encapsulates a user defined aggregate function that is returned by
udaf()
,UDAFRegistration.register()
orUDAFRegistration.register_from_file()
. The constructor of this class is not supposed to be called directly.Call an instance of
UserDefinedAggregateFunction
to generate aColumn
instance. The input type can be a column name as astr
, or aColumn
object.See also
Attributes
The Python class or a tuple containing the Python file path and the function name.
The UDAF name.