Constant Mode Table UDFs | SQL External Routine Programming | Teradata Vantage - Constant Mode Table UDFs - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

This section provides guidelines on how to write a Java method for a table UDF that can handle an invocation from a SELECT statement that specifies constant expression input arguments.

For example, the following statement invokes table_function_1 with a constant argument:

SELECT *
FROM TABLE (table_function_1('STRING_CONSTANT'))
AS table_1;
Although this section discusses how to implement a table function that only handles constant expression input arguments, you can design a table function that can handle constant and variable input arguments. For details on how to implement a variable mode table function, see Variable Mode Table UDFs.