Overview - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
qqu1556127655717.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

The following sections describe the functions that you can use with algorithmic compression (ALC) to compress and uncompress column data of character or byte type. Compression of data reduces space usage and the size of disk I/Os.

If the compression and decompression functions described here are not optimal for your data, you can write your own user-defined functions (UDFs) to compress and uncompress table columns.

Using ALC together with block-level compression (BLC) may degrade performance, so this practice is not recommended.

Prerequisites

The functions described here are embedded services system functions. For information on activating and invoking embedded services functions, see "Embedded Services System Functions" in Teradata Vantage™ - SQL Functions, Expressions, and Predicates, B035-1145.

FOR more information on... SEE...
ALC
  • “COMPRESS and DECOMPRESS Phrases” and “CREATE TABLE” in Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.
writing UDFs for ALC
  • “Defining Functions for Algorithmic Compression” in Teradata Vantage™ - SQL External Routine Programming, B035-1147.
compression methods supported by Teradata Database and a comparison of the various methods
  • “Using Data Compression” in Teradata Vantage™ - Database Design, B035-1094.
  • “Compression Methods” in Teradata Vantage™ - Database Design, B035-1094.