Overriding the Default Mapping of Return Value Types - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
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.