ClickHouse Newsletter December 2022: Project all your troubles away
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.
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 22.3 LTS Released
ClickHouse mediumAdept
ClickHouse 22.3 is a long-term support release (supported through March 2023) focused on maturity and reliability. ClickHouse Keeper, a Jepsen-tested drop-in ZooKeeper replacement, is now production ready. So are AArch64 builds, which already give better price/performance in major clouds, and MergeTree/ReplicatedMergeTree on S3, though zero-copy replication is not yet ready and GCP has known issues. The release also adds reproducible hermetic builds, X.509 authentication, more fuzzing with randomized settings and backward-compatibility tests, and an experimental JSON type that stores inferred dynamic subcolumns in columnar form. Other changes include up to 2x faster MergeTree inserts, up to 3x faster large IN lists, and a hybrid RAM/disk cache for remote filesystems.
- 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 25.6
ClickHouse mediumAdept
ClickHouse 25.6 (25 features, 32 performance optimizations, 105 bug fixes) can take a single consistent storage snapshot across all subqueries and CTEs in a SELECT, controlled by enable_shared_storage_snapshot_in_query. Snapshots rely on immutable data parts that a query references until it finishes. Multiple projections can now be combined to prune parts for one query, building on index-like projections that store only the sort key plus _part_offset to cut storage duplication, though pruning is part-level only for now. Other additions include reading Parquet's logical JSON type back as ClickHouse JSON, experimental Time/Time64 types, and new system.codecs and iceberg_history system tables.
- ClickHouse Release 24.3
ClickHouse mediumAdept
ClickHouse 24.3 enables the new query analyzer by default (beta), which fixes nested CTE/join column resolution, allows multiple ARRAY JOIN clauses, treats tuple elements like columns, and supports lambda aliases; the old implementation is slated for removal in 24.4/24.5. ATTACH PARTITION can now copy parts from a remote disk such as a web-hosted table, which is faster than INSERT…SELECT because it skips deserialization. The release also adds S3 Express One Zone support. In a 1-trillion-row Parquet count it ran about 7x faster than standard S3, at roughly 7x the storage cost ($0.16 vs $0.023 per GB).