Example: Setting BLOCKCOMPRESSION and TVSTEMPERATURE Query Bands - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Suppose that both block-level compression and temperature-based block-level compression are enabled for your site.

If an unpopulated table using manual compression is loaded, the data blocks are stored with block-level compression. However, if an unpopulated table set for automatic compression is loaded, and the default threshold for temperature-based block-level compression is COLD, its data blocks are not compressed because for an automatic table, the compression implied by the specified temperature and the related DBS Control parameters overrides the specific BLOCKCOMPRESSION clause.

     SET QUERY_BAND = 'BLOCKCOMPRESSION=YES;
                      TVSTEMPERATURE=VERYHOT;' 
     FOR SESSION;