v.21.9New Feature

Add support for bzip2 compression in import/export

Add support for bzip2 compression method for import/export. Closes #22428. #27377 (Nikolay Degterinsky).
Added support for bzip2 compression method in ClickHouse import and export operations.

Why it matters

This feature enables users to compress and decompress data using the bzip2 algorithm during import and export, providing an alternative compression option that can improve compression ratios and compatibility with existing bzip2-compressed data.

How to use it

To use bzip2 compression, specify 'bzip2' as the compression method in the import or export commands or settings. For example, when exporting data, set the compression parameter to bzip2 to enable bzip2 compression.