Usage Notes - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

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

Uncompressed character data in Vantage requires 2 bytes per character when storing Unicode data. CAMSET takes Unicode character input, compresses it into partial byte, one byte, or two byte values, and returns the compressed result.

CAMSET provides best results for short or medium Unicode strings that:
  • contain mainly digits and English alphabet letters.
  • do not frequently switch between:
    • lowercase and uppercase letters.
    • digits and letters.
    • Latin and non-Latin characters.

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