compress_chunk function is used for synchronous compression (or recompression, if necessary) of a specific
. This is most often used instead of the add_compression_policy function, when a user
wants more control over the scheduling of compression. For most users, we suggest using the policy framework instead.
You can also compress s by running the job associated with your compression policy. compress_chunk
gives you more fine-grained control by allowing you to target a specific that needs compressing.
Samples
Compress a single .Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
chunk_name | REGCLASS | - | ✔ | Name of the to be compressed |
if_not_compressed | BOOLEAN | true | - | Disabling this will make the function error out on s that are already compressed. |
Returns
| Column | Type | Description |
|---|---|---|
compress_chunk | REGCLASS | Name of the that was compressed |