Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 6 min read Announcement mediumAdept

ClickHouse Newsletter March 2023: Contributing to ClickHouse

ClickHouse v23.2 ships 18 new features, 30 performance optimisations and 43 bug fixes, headlined by multi-stage PREWHERE, read support for Apache Iceberg v1 tables, and correlation matrix computation. The featured query counts cumulative unique contributors to ClickHouse repositories from GitHub events. A first version uses groupArrayDistinct with a window function over monthly arrays. A more concise version passes uniqState sketches from a subquery and merges them cumulatively with uniqMerge in a window, cutting runtime from 32ms to 24ms. The issue closes with a reading list and upcoming webinars and meetups.

Assumes: SQL window functionsaggregate functions

Related posts

  • ClickHouse Release 23.2

    ClickHouse mediumAdept

    ClickHouse 23.2 ships 18 features, 30 performance optimisations and 43 bug fixes. Its headline change is multi-stage PREWHERE, which filters columns from smallest to largest uncompressed size so that each step narrows the granules scanned by the next. It is enabled with enable_multiple_prewhere_read_steps=1, ideally alongside move_all_conditions_to_prewhere. The release also adds read support for Apache Iceberg v1 via the iceberg table function and engine (latest snapshot only for now), a corrMatrix aggregate for Pearson correlation matrices, Kafka Connect Sink compatibility with Amazon MSK, and a GA Metabase plugin.

  • ClickHouse Newsletter July 2023: Seeing Clearly

    ClickHouse mediumAdept

    ClickHouse v23.6 adds 10 features, 12 performance optimisations and 31 bug fixes. Highlights include exploiting natural sort order in almost-sorted columns that aren't in the ordering key, MongoDB integration support up to v6, and a transform function that now works with all data types. The query of the month uses the windowFunnel function on the GitHub Events dataset for a fork-to-PR funnel analysis. About 17% of ClickHouse forkers open a PR within 30 days, which ranks 22nd among repositories with more than 25k stars and 5k forks. The rest of the issue is links and upcoming meetups and trainings.

  • ClickHouse Release 23.11

    ClickHouse mediumAdept

    ClickHouse 23.11 ships 25 features, 24 performance optimisations and 70 bug fixes, headlined by a production-ready S3Queue engine for streaming ingestion from S3 buckets. Experimental t-digest column statistics, stored per part, let multi-stage PREWHERE order filters by selectivity, cutting data read in an example from 240 MB (no PREWHERE) to 160 MB to 80 MB. Window functions now evaluate partitions in parallel, giving a roughly 10% speedup (8.5s to 7.6s) on a 1-billion-row NOAA moving-average query, with gains depending on partition count and work per partition.

  • ClickHouse Release 25.8

    ClickHouse mediumAdept

    ClickHouse 25.8 ships 45 features, 47 performance optimizations and 119 bug fixes. The headline is an experimental native Parquet reader (v3) that bypasses Apache Arrow. It reads columns within a row group concurrently, prefetches non-PREWHERE columns only after PREWHERE, and adds page-level min/max pruning, averaging 1.81× faster on ClickBench; in the demo a query drops from 1.5s to 0.7s. Also new: Hive-style partitioned writes via the S3 engine, Iceberg insert/delete/update/schema changes (experimental), Delta Lake writes and time travel, catalogs promoted to beta, and the _table virtual column available beyond merge().

  • ClickHouse Release 26.4

    ClickHouse mediumAdept

    ClickHouse 26.4 ships 39 features, 45 performance optimizations and 238 bug fixes, led by SQL-compatibility additions: VALUES as a table expression with column aliases, PostgreSQL-style EXTRACT units, SET TIME ZONE, NATURAL JOIN and compound INTERVAL literals. LIKE '%token%' queries can now scan the text index dictionary instead of the full column, which ran about 3x faster with far less memory on the HackerNews dataset. COUNT DISTINCT (uniqExact) merges all per-thread two-level hash tables in a single pass and stops spawning redundant threads, giving 3-15x speedups on a 288-core machine but nothing on a 12-core laptop. EXPLAIN pretty output is more readable, and a new JSONAllValues function lets a text index cover every leaf value of a JSON column.

The quest for software engineering knowledge.

Look:
Layout: