v.21.1New Features

Add min_compress_block_size and max_compress_block_size to MergeTreeSettings

Add settings min_compress_block_size and max_compress_block_size to MergeTreeSettings, which have higher priority than the global settings and take effect when they are set. close 13890. #17867 (flynn).
Introduces two new settings, min_compress_block_size and max_compress_block_size, in MergeTreeSettings that override global compression block size settings when configured.

Why it matters

These settings allow finer control over the compression block size specifically for MergeTree tables, enabling users to optimize compression behavior on a per-table basis rather than relying solely on global settings.

How to use it

Set min_compress_block_size and/or max_compress_block_size in the MergeTreeSettings section of your table configuration to specify custom compression block size limits that will take precedence over global configuration.