Usage Notes - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

When a table function with dynamic result row specification is defined by the CREATE FUNCTION statement, the RETURNS TABLE VARYING COLUMNS specifies the maximum number of result columns that the table function supports.

The actual number and definition (data type and attributes) of the output columns that the table function must return is not known until runtime, when the table function is invoked in a SELECT statement.

A table function uses FNC_TblGetColDef at runtime to get the number and definition of the output columns that the table function must return.

This function can be called during any table function processing phase.

This function can only be called from within a table function. Calling this function from an external stored procedure, scalar UDM, scalar function, or aggregate function results in an exception on the transaction.