Skip to main content
Creates a new function environment for UDFs/UDTFs written using the Python UDF API, where any packages required by the Python UDF can be installed and used. Packages can be installed with the ALTER FUNCTION ENVIRONMENT command.
CREATE FUNCTION ENVIRONMENT Syntax
UDFs running with no function environment specified run in the default function environment, kinetica-default-environment. See Pre-installed Libraries on the Cluster for the list of pre-installed Python packages.

Parameters

OR REPLACE

Any existing UDF environment with the same name will be dropped before creating this one

<environment name>

Name of the UDF environment, which can be referenced in subsequent commands

Examples

To create the Python UDF environment udfe_st:
CREATE FUNCTION ENVIRONMENT Example