15.00 - Special Considerations for Java UDFs - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

Teradata Database
Release Number
Content Type
Programming Reference
Publication ID
English (United States)

Special Considerations for Java UDFs

Java UDFs can only be run in EXECUTE PROTECTED mode. If you specify EXECUTE NOT PROTECTED for a Java UDF, the request aborts and returns an error message to the requestor.

For Java UDFs, the COMPILE option operates identically to UDFs written in C or C++ with the exception that the extension the JAR file references in the Java UDF EXTERNAL NAME clause is redistributed to all affected nodes on the system. Redistribution is useful when a JAR file is missing on a given node. Note that you cannot specify the COMPILE ONLY option for Java UDFs.

The ONLY clause on the COMPILE option for UDFs written in Java generates preamble files, but does not redistribute their associated JAR file.

For more information, see “CREATE FUNCTION (External Form)/ REPLACE FUNCTION (External Form)” on page 240 and “CREATE FUNCTION/REPLACE FUNCTION” in SQL Data Definition Language Syntax and Examples