Overriding the Default Mapping of Parameters - 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ā„¢

For UDFs that allow NULL as input arguments (where the CREATE FUNCTION or REPLACE FUNCTION statement specifies the CALLED ON NULL INPUT clause), simple mapping to Java primitives is not appropriate because they cannot represent NULLs.

To override the default mapping, the EXTERNAL NAME clause in the CREATE FUNCTION or REPLACE FUNCTION statement must explicitly specify the mapping in the parameter list of the Java method. For an example that shows how to override the default mapping, see Example: Overriding Default Parameter Mapping to Handle NULLs.