v.21.2Improvements
S3 Table Function Adds Support for Auto Compression Mode
S3table function now supportsautocompression mode (autodetect). This closes #18754. #19793 (Vladimir Chebotarev).
Why it matters
This feature solves the problem of manually specifying compression types when querying compressed data from S3, simplifying the user experience and reducing errors. It allows ClickHouse to automatically detect and handle compressed data, improving usability and flexibility when working with diverse data sources in S3.How to use it
When using theS3 table function, set the compression parameter to 'auto'. For example:SELECT * FROM s3('https://bucket.s3.amazonaws.com/file', 'CSV', 'auto');This enables automatic detection of the compression format.