Skip to content

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

ClickHouse 14 min read Release mediumAdept

ClickHouse Release 24.8 LTS

ClickHouse 24.8 is a Long Term Support release (supported for 12 months) with 19 new features, 18 performance optimisations and 65 bug fixes. Headline additions include an experimental JSON data type built on Variant and Dynamic, a table engine for time-series data, exactly-once processing of Kafka messages, and join improvements. The JSON type is shown in detail: dot syntax reads literal paths efficiently, `.^` returns subobjects, `.:Type` and `::Type` assume or cast types, and `SKIP`, `SKIP REGEXP` and per-path type hints control what is stored. A new `deduplicate_merge_projection_mode` setting controls how projections behave when ReplacingMergeTree or AggregatingMergeTree merges drop or fold rows. Previously, projections either silently fell out of sync or blocked those operations.

Related posts

  • ClickHouse Newsletter April 2022: JSON, JSON, JSON

    ClickHouse mediumAdept

    ClickHouse 22.3 LTS adds an experimental JSON data type that stores semi-structured documents in a single column, with dynamic subcolumns underneath, so you no longer need hand-built schemas of arrays and materialized columns. The worked examples cover querying nested fields, loading files with the JSONAsString format, and pulling a timestamp into its own column so MergeTree has a usable sorting key. They also show how to display field names with output_format_json_named_tuples_as_objects. The release also ships ARM Docker images, fully tested S3 disk storage (with known performance issues), and a Hive table function, and ClickHouse Cloud's serverless waitlist is now open.

  • ClickHouse Release 24.5

    ClickHouse mediumAdept

    ClickHouse 24.5 adds an experimental Dynamic data type for semi-structured columns that accepts values of any type without declaring them upfront like Variant, and queries them via dynamicType, dynamicElement and dot syntax. Reading files inside zip/tar archives now works for archives stored on S3, not just the local file system. CROSS JOIN memory usage is reworked: on a 1-billion-row PyPI table, peak memory fell from 51.77 GiB in 24.4 to 19.06 GiB uncompressed and 5.36 GiB with LZ4-compressed right-table blocks, at the cost of longer runtime. Right-table blocks can also spill to disk once max_bytes_in_join or max_rows_in_join is exceeded.

  • ClickHouse Release 24.12

    ClickHouse mediumAdept

    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.

  • Getting Data Into ClickHouse - Part 2 - A JSON detour

    ClickHouse mediumAdept

    ClickHouse's experimental JSON (Object('json')) type, introduced around 22.8, stores semi-structured rows by automatically inferring sub-columns and representing them internally as Tuples with minimal-width numeric types. It is demonstrated on the 28M-row Hacker News dataset via the JSONAsObject and JSONAsString formats. Because JSON sub-columns cannot serve as primary keys or carry codecs, the recommended pattern is a hybrid schema: declare stable fields like time and type explicitly so they can be used in ORDER BY, and keep the rest in a JSON column. That change cut a sample query from 2.6s to 0.74s. Inferred types widen transparently as new values arrive, but a single string value can silently convert a numeric column to String, so clean the data or declare critical columns explicitly.

  • ClickHouse Release 24.1

    ClickHouse mediumAdept

    ClickHouse 24.1 ships 26 features, 22 performance optimisations and 47 bug fixes. Highlights include an experimental Variant type, a discriminated union of nested columns that lets maps, arrays and CSV schema inference hold mixed types, read back per type with variantElement. New Damerau-Levenshtein, Jaro and Jaro-Winkler similarity functions join the existing Levenshtein distance, demonstrated by finding typosquatting domains in the 7M-row Tranco list. The release also adds a vertical algorithm that speeds up FINAL queries on ReplacingMergeTree tables.

The quest for software engineering knowledge.

Look:
Layout: