- Memory data chunk being written to becomes full
- System compression timeout (
disk_auto_optimize_timeout) is reached
- Compression explicitly defined on the column (
compresscolumn property) - Compression explicitly defined on the column’s table at the time of its
creation, applying to any columns on that table with no explicit compression
definition of their own (
compression_codectable property) - Global default column compression (
compression_codec)
| Name | Arg. Min. | Arg. Max. | Notes |
|---|---|---|---|
none | Apply no compression to this column, overriding any higher-level defaults. | ||
lz4 | 0 | 12 | Default is 0. Values of 9 and above enable LZ4_HC. |
snappy | |||
zstd | -131072 | 22 | Default is 3. Negative values prioritize speed over compression ratio. |
- LZ4 compression on the
first_name - zstd compression on the
last_name - Snappy compression on all other columns
Limitations and Cautions
-
Columns with any of the following characteristics are not eligible for
column compression:
- Member of a filtered view or join view
- Member of a logical external table or SQL view
- The column compression of an existing column cannot be modified directly.