Example: Decompressing Latin Values with LZDECOMP_L - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

In this example, the Latin values in the Description column are compressed using the LZCOMP_L function with ALC. The LZDECOMP_L function uncompresses the previously compressed values.

CREATE MULTISET TABLE Pendants
   (ItemNo INTEGER,
    Gem CHAR(10) UPPERCASE CHARACTER SET LATIN,
    Description VARCHAR(1000) CHARACTER SET LATIN
       COMPRESS USING TD_SYSFNLIB.LZCOMP_L
       DECOMPRESS USING TD_SYSFNLIB.LZDECOMP_L);