ClickHouse Release 24.5
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.
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.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 Release 24.8 LTS
ClickHouse mediumAdept
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.
- 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.
- How we built a new powerful JSON data type for ClickHouse
ClickHouse hardMaster
ClickHouse's new JSON type stores every JSON path as a true columnar, dense subcolumn, built on two standalone building blocks: Variant and Dynamic. Variant keeps mixed-type values in per-type column files without coercing them to a common type, using a UInt8 discriminator column (255 reserved for NULL) and in-memory offsets to locate values. Dynamic removes the need to declare types up front and caps separately stored types with max_types (default 32). Types beyond the cap go into a binary-encoded SharedVariant string column, which keeps sparse or high-cardinality JSON from producing an avalanche of column files on disk.