16.20 - Example Query - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Call the add_int UDF, using the NEW VARIANT_TYPE expression to create the dynamic UDT argument.

SELECT udf_scalar_mp_struc(NEW VARIANT_TYPE(1 AS x, '1' AS y,
   CAST('1' AS CLOB(8)) AS z));