Passing Dynamic UDTs as an Alternative to Overloading Function Names - 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
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

Overloading a function provides applications with the ability to call one SQL UDF and pass arguments with data types that are determined at run time.

However, defining C or C++ functions to handle different combinations of parameter types can become cumbersome.

As an alternative to function overloading, consider defining a single C or C++ function with up to eight parameters that are defined as dynamic user-defined types (UDTs).

For details on using dynamic UDTs, see Defining Functions that Use UDT Types.