snowflake.snowpark.udf.UserDefinedFunction¶
- class snowflake.snowpark.udf.UserDefinedFunction(func: Callable | Tuple[str, str], return_type: DataType, input_types: List[DataType], name: str, is_return_nullable: bool = False)[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/udf.py#L42-L111)¶
Bases:
objectEncapsulates a user defined lambda or function that is returned by
udf(),UDFRegistration.register()orUDFRegistration.register_from_file(). The constructor of this class is not supposed to be called directly.Call an instance of
UserDefinedFunctionto generateColumnexpressions. The input type can be a column name as astr, or aColumnobject.See also
Attributes
The Python function or a tuple containing the Python file path and the function name.
The UDF name.