Truncation Exceptions in ANSI Mode - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549

In ANSI mode, truncation of non-pad characters assigned to a column returns an error. The pad character is determined by the target column type.

  • If during external-to-internal or explicit conversion the data to be placed in a fixed character column expands so that the column length is exceeded with non-pad characters, VantageCloud Lake returns an error.
  • If the fixed character column length is exceeded with pad characters, VantageCloud Lake truncates the input at the length of the column.
  • If data to be placed in a varying column expands so that the maximum column length is exceeded with non-pad characters, VantageCloud Lake returns an error.
  • If the varying character column maximum length is exceeded with pad characters, the VantageCloud Lake truncates excess trailing pad characters.

Internal-to-external conversion is not affected by the mode of the database. ANSI mode works the same as Teradata mode in this respect.