You are viewing documentation about an older version (1.4.0). View latest version

User-Defined Table FunctionsΒΆ

User-defined table functions (UDTFs) in Snowpark. Refer to UDTFRegistration for details and sample code.

Classes

UDTFRegistration(session)

Provides methods to register classes as UDTFs in the Snowflake database.

UserDefinedTableFunction(handler, ...)

Encapsulates a user defined table function that is returned by udtf(), UDTFRegistration.register() or UDTFRegistration.register_from_file().

Methods

register(handler, output_schema[, ...])

Registers a Python class as a Snowflake Python UDTF and returns the UDTF.

register_from_file(file_path, handler_name, ...)

Registers a Python class as a Snowflake Python UDTF from a Python or zip file, and returns the UDTF.

Attributes

handler

The Python class or a tuple containing the Python file path and the function name.

name

The UDTF name.