LZCOMP Usage Notes - Teradata VantageCloud Lake

Lake - Working with SQL

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

Uncompressed character data in Vantage requires 2 bytes per character when storing Unicode data. LZCOMP compresses Unicode character input using the Lempel-Ziv algorithm, and returns the compressed result.

LZCOMP provides good compression results for long Unicode strings and medium-length strings with multiple repeating characters, but may be less effective for short strings.

Although you can call the function directly, LZCOMP is typically used with algorithmic compression (ALC) to compress table columns. If LZCOMP is used with ALC, nulls are also compressed if those columns are nullable.