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

For scalar or aggregate UDFs that can return a NULL result, simple mapping to Java primitives is not appropriate.

To override the default mapping, the EXTERNAL NAME clause in the CREATE FUNCTION or REPLACE FUNCTION statement must explicitly specify the Java data type of the return value.

For an example of how to override the default mapping of return value types, see Example: Overriding Default Parameter Mapping to Handle NULLs.