Number of Columns that Can Be Compressed - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantage™

You can compress as many columns as practical for any table. However, compressing a substantial number of values in a table using MVC can contribute to table header overflow.

IF you specify … THEN …
COMPRESS with:
  • no argument
  • NULL enclosed in parentheses
nulls are compressed for nullable columns.

NULL cannot be specified in a COMPRESS phrase for a column that is declared NOT NULL.

COMPRESS with a constant the indicated value is compressed. For nullable columns, nulls are also compressed.
COMPRESS with:
  • a multi-valued, comma-separated list of constant values enclosed in parentheses
  • a multi-valued, comma-separated list of constant values and NULL enclosed in parentheses
nulls and the specified distinct values are compressed for nullable columns. Nulls are compressed for nullable columns regardless of whether NULL appears in the list.

NULL cannot appear in a COMPRESS phrase for a column that is declared NOT NULL.

COMPRESS USING compress_udf DECOMPRESS USING decompress_udf nulls are compressed for nullable columns. Non-null column values that are not specified in the value compression list are compressed using the specified compress UDF, and decompressed using the specified decompress UDF.