Working with Export Widths | Character Set | VantageCloud Lake - Working with Export Widths - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The number of characters or bytes Analytics Database exports can exceed or be less than the number of characters or bytes the client application expects to receive unless the export width is set properly.

The export width defines how the system reserves space for each character field in result set rows returned to Teradata clients.

64000 bytes is the maximum possible for an exported character string.

Export Width Rules

The character conversion parameters for all export width definitions are stored as a rule set in the DBC.ExportWidth table, for example:

SELECT * FROM DBC.ExportWidth;
ExportDefinitionName    ExportWidthRuleSet
--------------------  	 -----------------------------------------
EXPECTED                1112211111222232222211121111112222322222
MAXIMUM                 1322323221332232322321123111122322323222
COMPATIBILITY           1112211111111231111111121111112222322222
CustomDefinition1       4112211111222232222211121111112222322224

Export Width Space Considerations

The export width value is a multiplier, so that if data in the server character set is n bytes, and the export width is 2, the same data in the result set occupies 2n bytes.