v.23.3Improvement
Add Optional Arguments to Codecs in ClickHouse Compressor and Fix Errors
Add optional arguments to codecsDoubleDelta(bytes_size),Gorilla(bytes_size),FPC(level, float_size), this allows using these codecs without column type inclickhouse-compressor. Fix possible aborts and arithmetic errors inclickhouse-compressorwith these codecs. Fixes: https://github.com/ClickHouse/ClickHouse/discussions/47262. #47271 (Kruglov Pavel).
Why it matters
This feature solves the issue of requiring a column type to use the DoubleDelta, Gorilla, and FPC codecs in theclickhouse-compressor tool. By adding optional arguments, it improves flexibility and stability, preventing crashes and arithmetic errors during compression operations with these codecs.How to use it
When usingclickhouse-compressor, specify the codecs with optional parameters like DoubleDelta(bytes_size), Gorilla(bytes_size), or FPC(level, float_size) to apply them without needing to specify the column type explicitly. This enhances compatibility and robustness in compression commands.