What’s New in ClickHouse 22.1
ClickHouse 22.1 adds schema inference for table functions like url, s3, file and hdfs, detecting format and compression from the file extension and reading column types from self-describing formats such as Native, Parquet, Avro and ORC. For Parquet it uses range requests to fetch only the footer metadata. Other additions include experimental parallel query processing across replicas with dynamic work distribution, ZooKeeper-path-based cluster service discovery, and automatic sparse column serialization for mostly-default columns, selected from statistics gathered on insert and merge. The release also brings live CPU/memory usage in clickhouse-client, Hive and Azure Blob Storage integrations, and Cramér's V and Theil's U functions.
Related posts
- ClickHouse Release 23.8
ClickHouse mediumAdept
ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the _file virtual column without reading them. On a 126GiB PyPI Parquet dataset in GCS, a count dropped from 26.5s to 11.4s, a time-range filter from 84s to 35s, and a 10% filename sample from 4.6s to 0.6s. The release also adds the S3Queue table engine for streaming ingestion from S3. It tracks processed files in ClickHouse Keeper using an unordered mode (with TTL and file-count limits) or an ordered mode keyed on filenames. Direct querying of zip, tar and 7z archives via the file function is also new.
- ClickHouse Release 23.7
ClickHouse mediumAdept
ClickHouse 23.7 ships 31 features, 16 performance optimisations and 47 bug fixes. Parquet export is up to 6x faster, with a UK house price export dropping from 19.9s to 11.6s. Sparse column serialization is now on by default (ratio_of_defaults_for_sparse_serialization = 0.9375): columns dominated by default values store only non-default values plus an offset stream, improving compression and ClickBench results. PRQL, a pipelined language that compiles to SQL, arrives as an experimental query language.
- A Deep Dive into Apache Parquet with ClickHouse - Part 1
ClickHouse mediumAdept
ClickHouse can read and write Apache Parquet through its file and s3 table functions, using the same Parquet code in ClickHouse Local and ClickHouse Server. Examples on a 28M-row UK house price dataset show schema inspection with DESCRIBE and aggregation queries over local files, S3 objects and glob-matched file sets. Writes can go through INSERT INTO FUNCTION, INTO OUTFILE or FORMAT Parquet redirection, and PARTITION BY splits output into one file per year. INSERT INTO FUNCTION produces smaller files (243MB vs 291MB) than the client-side approaches, so it is recommended where possible.
- What’s New in ClickHouse 21.12
ClickHouse mediumAdept
ClickHouse 21.12 marks ClickHouse Keeper as feature complete: it now supports ZooKeeper's four-letter monitoring commands and works as a drop-in ZooKeeper replacement, with compressed, checksummed logs and no zxid overflow or JVM tuning. The release adds partitioned writes for the File, URL and HDFS engines, glob and parallel reads for INSERT FROM INFILE, INTERVAL steps in ORDER BY WITH FILL, and Identifier query parameters for safely substituting table and database names. It also introduces an experimental Bool type and constraint-based query optimization, where CHECK and new ASSUME constraints rewrite queries to cheaper columns and hypothesis indexes record precomputed conditions. Arrow-family formats read from s3, url and hdfs are now fetched in chunks via range requests above 1 MiB, so large files no longer have to be loaded fully into memory.
- ClickHouse Release 23.5
ClickHouse mediumAdept
ClickHouse 23.5 ships 29 new features, 22 performance optimizations and 85 bug fixes. Highlights are a new azureBlobStorage table function and table engine for reading and writing Azure Blob Storage, and a built-in keeper-client for inspecting ClickHouse Keeper. Parquet reading is faster through fewer mutex locks and out-of-order reading by default, which can be reverted with input_format_parquet_preserve_order; one example query dropped from 0.367s to 0.240s. Geo types and functions and the query results cache are now production ready, and compressed marks and indices on disk are enabled by default.