Default Cast For a Structured UDT - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

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
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™

Unlike the case for distinct UDTs, the system does not create a default cast for a newly created structured UDT. The exceptions to this are the Period and Geospatial data types, which are Teradata internal structured UDTs, and their default casts are predefined.

You can optionally create casts to support any conversions you need to support the structured UDT.

You are not required to create explicit casting functionality for a structured UDT; however, you must create a cast if the structured UDT is to perform in certain SQL expressions such as the USING request modifier, or to participate in various loading operations such as Fastload and MultiLoad.

To determine if a structured type has casts defined for it, use the HELP TYPE statement (see HELP TYPE).