UDF functions are executed using Apply table operator (Open Analytics Framework). For Apply table operator setup, refer to Complete Prerequisites to Use Open Analytics Framework.
UDF functions support all Vantage platforms where the appropriate table operator is supported.
Database Engine 20 supports Apply Table Operator (Open Analytics Framework)
- Once you create the environment, configure it to be used by teradataml UDF functions. Refer to Working with Open Analytics for setup and environment creation details.
from teradataml import configure configure.openml_user_env = <Object of UserEnv class>
- If you don't specify a configuration option, teradataml UDF uses default openml_env, an Open Analytics Framework environment for execution. This default environment has the latest Python supported by Open Analytics Framework at the time of creating the environment.
- Required modules/packages to run the user defined function must be installed in a remote user environment while executing teradataml UDF on VantageCloud Lake.
- While working on date and time data types, you must format these to the supported formats. Refer to Requisite Input and Output Structures.