Workaround for Adding More Than 512 Attributes to 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™

The number of attributes that can be added to a structured UDT per ALTER TYPE … ADD ATTRIBUTE request varies between 300 and 512, depending on the platform. The limit is imposed because of restrictions on the availability of the Parser memory that is required to register the autogenerated observer and mutator methods for a structured type, not because of the limit on the total number of attributes that can be defined per structured type, which is roughly 4,000.

The workaround for this is just to submit as many individual ALTER TYPE … ADD ATTRIBUTE requests, each having an upper limit of 512 attributes, as required to define the desired total number of attributes for the structured UDT.