Skip to content

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

ClickHouse 12 min read Release mediumAdept

ClickHouse Release 23.9

ClickHouse 23.9 ships 20 new features, 19 performance optimisations and 55 bug fixes, highlighted by JSON schema type inference, a GCD compression codec and SSH key authentication. Type inference derives nested Tuple schemas from well-structured JSON by sampling the first 25k rows or 32MB, but it ignores columns that appear after the sample and rejects inconsistent types for the same path. The GCD codec divides each block's values by their greatest common divisor before Delta/ZSTD. On an 11-billion-row Forex dataset it cut compressed Decimal column size by 38% with oversized precision and about 20% even with optimal precision. Users can now authenticate with SSH keys configured in YAML or via DDL instead of passwords.

Assumes: ClickHouse SQL basicscolumnar compression codecs

Related posts

  • Optimizing ClickHouse with Schemas and Codecs

    ClickHouse mediumAdept

    Tightening a ClickHouse schema with strict types cuts a 1B-row NOAA weather dataset from 131.58 GiB to 71.38 GiB uncompressed. The changes are right-sized integers instead of Int64, Int16 elevation, an Enum8 for weather type, LowCardinality for ~100k-value strings, and Float32 lat/lon in place of a Point. Compressed size moves less, from 4.07 GiB to 3.83 GiB, but smaller uncompressed data lowers RAM use and improves CPU cache efficiency at query time. Each step is checked against per-column system.columns stats and a benchmark query, before moving on to tuning column codecs for the largest columns such as date and temperatures.

  • ClickHouse Release 25.3

    ClickHouse mediumAdept

    ClickHouse 25.3 adds query support for AWS Glue and Unity lakehouse catalogs and declares the columnar JSON type, along with the Variant and Dynamic types it is built on, production-ready. It also introduces a query condition cache that reuses scan results across queries with identical selective WHERE predicates. Reads of external data such as S3 are now distributed across a cluster automatically when parallel replicas are enabled. Under the hood, the initiator node dispatches files dynamically to workers, and a 10-node example ran 4x faster. New functions include arraySymmetricDifference and estimateCompressionRatio, which compares codecs like LZ4, ZSTD and Gorilla on a column and shows how column type and sort order change the compression ratio.

  • What’s New in ClickHouse 22.1

    ClickHouse mediumAdept

    ClickHouse 22.1 adds schema inference for table functions like url, s3, file and hdfs, detecting format and compression from the file extension and reading column types from self-describing formats such as Native, Parquet, Avro and ORC. For Parquet it uses range requests to fetch only the footer metadata. Other additions include experimental parallel query processing across replicas with dynamic work distribution, ZooKeeper-path-based cluster service discovery, and automatic sparse column serialization for mostly-default columns, selected from statistics gathered on insert and merge. The release also brings live CPU/memory usage in clickhouse-client, Hive and Azure Blob Storage integrations, and Cramér's V and Theil's U functions.

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

The quest for software engineering knowledge.

Look:
Layout: