Algorithmic compression (ALC) for a column.
For a list of data types that can be algorithmically compressed, see COMPRESS and DECOMPRESS Phrases.
You can specify COMPRESS USING for a column in a volatile table.
For COMPRESS USING compress_UDF_name, the table cannot be populated with rows.
If you specify COMPRESS USING, you must also specify DECOMPRESS USING. The COMPRESS USING and DECOMPRESS USING options can be specified in either order.
ALC compresses that data to less space than required, if possible.
You can specify multivalue compression and algorithmic compression for the same column. Algorithmic compression applies only to values not specified for multivalue compression.
For a column-partitioned table, the column partition that includes the column can have autocompression.
You can combine multivalue compression, algorithmic compression, autocompression (for a column-partitioned table), and block-level compression for the same table to achieve better compression. However, Teradata does not recommend using algorithmic compression with block-level compression, which may negatively affect performance of other workloads.
Teradata provides external UDFs for algorithmic compression and decompression. For more information, see Compression/Decompression Functions.
- compress_UDF_name
- Name of the UDF to algorithmically compress data in this column. The default containing database for compress_UDF_name is SYSUDTLIB. If compress_UDF_name is an embedded services UDF, then its default containing database is TD_SYSFNLIB. If compress_UDF_name is not contained in SYSUDTLIB or TD_SYSFNLIB, the system returns an error to the requestor.