What’s New in ClickHouse 21.12
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.
Related posts
- ClickHouse 22.11 Release
ClickHouse mediumAdept
ClickHouse 22.11 ships 15 new features, 5 performance optimisations and 32 bug fixes, headlined by composite time intervals, recursive ** glob patterns, Spark-compatibility functions, INSERT retries and SELECT support for Apache Hudi and Delta Lake. The new insert_keeper_max_retries setting lets long-running inserts survive Keeper/ZooKeeper reconnections by retrying failed blocks instead of failing the whole request, with 5 recommended for most cases. Recursive ** globs, combined with range expansion and set matching in path-accepting table functions such as s3(), allow queries to read only the relevant files. Worked examples over git-import commit data on S3 show this pruning in practice.
- 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.
- What’s New in ClickHouse 22.1
ClickHouse mediumAdept
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.
- ClickHouse Newsletter December 2022: Project all your troubles away
ClickHouse mediumAdept
ClickHouse Cloud is now generally available, adding SOC 2 Type II compliance, SLAs, AWS Marketplace availability, a Development tier from about $50/month, a SQL console, and support for PostgreSQL/MySQL engines, dictionaries and SQL UDFs. ClickHouse 22.11 brings composite time intervals, recursive `**` globs for filesystem and S3 paths, keeper retries during inserts (`insert_keeper_max_retries`), Hudi and DeltaLake engines, readonly S3 disks, and Object(JSON) nested in other types. A worked projection example on a metrics table cuts a latest-value-per-metric query from 0.9s scanning 220M rows to 7ms scanning 255 rows, with no change to the query or table schema. The issue also lists upcoming workshops and meetups and a holiday reading list.
- 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.