v.23.8New Feature

Direct Import from Archive Formats in ClickHouse

Direct import from zip/7z/tar archives. Example: file('*.zip :: *.csv'). #50321 (nikitakeba).
Introduces direct import capabilities from compressed archives such as zip, 7z, and tar into ClickHouse queries using the file table function.

Why it matters

This feature enables users to easily read and import data stored inside compressed archive files without manually extracting them first. It simplifies the data ingestion process and saves time and resources by allowing ClickHouse to directly handle archive formats during query execution.

How to use it

To import data from compressed archives, use the file table function with a path pattern specifying the archive and the inner file, for example: file('*.zip :: *.csv'). This syntax instructs ClickHouse to read the CSV files directly from zip archives matching the pattern.