Determining Which Constructor is Invoked - Analytics Database - Teradata Vantage

SQL Operators and User-Defined Functions

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
2024-04-05
dita:mapPath
xub1628111590556.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
drp1544241916620
lifecycle
latest
Product Category
Teradata Vantage™

Vantage uses the rules in the following table to select a UDT constructor:

IF the NEW expression specifies a constructor with an argument list that is … THEN …
empty If a constructor method that takes no parameters and has the same name as the UDT:
  • Exists in the SYSUDTLIB database, Vantage selects that constructor method.
  • Does not exist in the SYSUDTLIB database, Vantage selects the constructor function that is automatically generated when the structured UDT is created.
not empty Vantage selects the constructor method in SYSUDTLIB with a parameter list that matches the arguments passed to the constructor in the NEW expression.