17.10 - Example Query - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
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));