estimateCompressionRatio
estimateCompressionRatio
Introduced in: v25.4
Estimates the compression ratio of a given column without compressing it.
Note
For the examples below, the result will differ based on the default compression codec of the server. See Column Compression Codecs.
Syntax
Parameters
codec— String containing a compression codec or multiple comma-separated codecs in a single string.Stringblock_size_bytes— Block size of compressed data. This is similar to setting bothmax_compress_block_sizeandmin_compress_block_size. The default value is 1 MiB (1048576 bytes).UInt64
Arguments
column— Column of any type.Any
Returned value
Returns an estimate compression ratio for the given column. Float64
Examples
Basic usage with default codec
Using a specific codec
Using multiple codecs