Skip to content

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

ClickHouse 15 min read Release mediumAdept

ClickHouse Release 24.12

ClickHouse 24.12 adds LIKE and unknown-value equality/IN support for Enums, an experimental descending MergeTree sorting key, JSON subcolumns as primary key columns, Iceberg REST catalog (Unity, Polaris) and schema evolution support, and automatic JOIN side swapping via query_plan_join_swap_table. On 100M Bluesky events, ordering by JSON subcolumns made a filtered query about 50x faster with 150x less memory. The now-default parallel hash join ran TPC-H Q3 at scale factor 100 about 8x faster than the plain hash join. The auto swap mode picks the smaller table as the hash-table build side to save memory and time.

Related posts

  • 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).

  • ClickHouse Cloud: Fast, Updatable Lookups with the Join Table Engine

    ClickHouse mediumAdept

    ClickHouse's Join table engine keeps a precomputed in-memory hash map for a fixed join strictness, type and key. With ANY LEFT strictness, inserts behave as upserts, which suits Type 1 slowly changing dimensions as an updatable alternative to Dictionaries, queried via Direct Join or joinGet. In open source the engine isn't distributed and persists each insert as an uncompacted .bin file, which degrades over time. ClickHouse Cloud transparently backs Join tables with a SharedJoin over a MergeTree (ALL) or ReplacingMergeTree (ANY) table, refreshing memory with a FINAL query on insert and startup, so deduplication, compaction and clustering are handled automatically.

  • ClickHouse Release 22.12

    ClickHouse mediumAdept

    ClickHouse 22.12 adds a grace hash join algorithm that partitions both join sides into hash buckets spilled to disk, dynamically increasing the bucket count when the in-memory hash table exceeds max_bytes_in_join, so large joins run with bounded memory. On a self-join of the hits dataset it beat partial_merge on speed while using more memory, and stayed slower than hash and parallel_hash. Tuning grace_hash_join_initial_buckets avoids re-bucketing. The release also adds regex-based password complexity rules, BSON input for mongodump files, GROUP BY ALL, and a Prometheus metrics endpoint for ClickHouse Keeper.

  • ClickHouse Release 25.9

    ClickHouse mediumAdept

    ClickHouse 25.9 adds automatic global join reordering, which uses a greedy algorithm plus row-count estimates or manually created column statistics to pick build/probe order across many tables. On a six-table TPC-H query at scale factor 100 it cut runtime from over an hour to 2.7 seconds (~1,450×) with ~25× less memory. Secondary indices are now checked granule by granule while data is read, so LIMIT queries stop early; one LIMIT 1 query ran over 4× faster. Other changes include an experimental streaming-friendly text index replacing the FST design, Iceberg write and metadata improvements, arrayExcept, argument-less boolean settings, and S3 storage class selection.

  • ClickHouse Release 24.11

    ClickHouse mediumAdept

    ClickHouse 24.11 makes parallel hash join the default join algorithm, building several hash tables concurrently for speed at the cost of more memory, and adds zero-copy block scattering between threads. ORDER BY WITH FILL gains a STALENESS modifier that stops generating filler rows once the gap from the previous real row exceeds a threshold. The HTTP interface now surfaces errors that happen mid-stream as a non-zero client exit code, and a new mark_cache_prewarm_ratio setting plus a SYSTEM PREWARM MARK CACHE command let the server load index marks into memory eagerly. An experimental BFloat16 type speeds up vector search: a full-scan nearest-neighbor query over 28M 384-dimensional vectors took 0.061s versus 0.146s with Float32.

The quest for software engineering knowledge.

Look:
Layout: