Workaround for Adding More Than 512 Attributes to a Structured UDT - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
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.