Skip to content

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

ClickHouse 9 min read How-to mediumAdept

New functions you might have missed in 2025

ClickHouse added 119 SQL functions across its 2025 releases, and the system.functions table's introduced_in column can be queried to list and count them per version. Worked examples cover several lesser-known additions: mapContainsValueLike for LIKE matching on map values, perimeterCartesian and perimeterSpherical for geometry, HMAC for message signing, argAndMin/argAndMax for returning both the argument and the extreme value, sparseGrams (a GitHub-devised alternative to n-grams for search indexes), stringBytesUniq, financialInternalRateOfReturn and its date-based variant, toInterval, and timeSeriesRange for generating timestamp sequences.

Related posts

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

  • ClickHouse Release 25.5

    ClickHouse mediumAdept

    ClickHouse 25.5 ships 15 new features, 23 performance optimizations and 64 bug fixes. The headline change is the HNSW vector similarity index moving from experimental to beta, with pre- and post-filtering for hybrid search. Other additions include Hive metastore catalog support for querying Iceberg tables, an implicit `table` in clickhouse-local so SELECT/FROM can be omitted for stdin input, an `introduced_in` field in system.functions, and correct parsing of Geo types from Parquet. Each feature comes with a runnable SQL example.

  • ClickHouse Newsletter March 2023: Contributing to ClickHouse

    ClickHouse mediumAdept

    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.

  • Alexey's favorite features of 2025

    ClickHouse mediumAdept

    ClickHouse shipped 12 releases in 2025 with 277 new features, 319 performance optimizations and 1,051 bug fixes. Highlights include lightweight SQL UPDATE/DELETE built on patch parts applied during merges, catalog-backed Iceberg/Delta Lake support (Unity, Glue, Hive, Polaris, OneLake) with pruning, schema evolution and writes, and a text index for full-text token search. Also covered: GA vector search with HNSW, binary quantization and a QBit type for runtime precision tuning, a query condition cache (~10x on repeated filters), global join reordering (~1,450x on a TPC-H six-table join) and lazy materialization (219s to 0.14s on a top-N query).

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