ClickhouseAnnouncement
ClickHouse release 26.10
Summary
ClickHouse 26.10 introduces a function composition operator (|) that chains functions into a pipeline, making lambdas in higher-order functions like arrayMap more readable. The release adds a written_rows counter to quotas, allowing administrators to cap ingestion by the number of rows a user writes per interval. New Array and Map functions expand the library for working with collections. String filtering during scan checks LIKE, startsWith, and endsWith while deserializing a column, reducing peak memory by about 98% in tests without affecting execution time. An experimental columns cache avoids repeated decompression and deserialization of the same data, and disk spilling for IN subqueries is now supported.
Context
ClickHouse 26.10 is a monthly release containing 104 new features, 225 performance optimizations, and 739 bug fixes. It introduces function composition for more readable SQL, more flexible JOIN conditions, new ways to work with text and SQLite files, faster GROUP BY queries, disk spilling for IN subqueries, and an experimental columns cache.
Approach / What changed
The release adds a function composition operator (|) that chains functions into a pipeline, a written_rows counter for quotas, new Array and Map functions, string filtering during scan (apply_string_filters_during_scan) that checks LIKE/startsWith/endsWith while deserializing a column, and experimental columns cache to avoid repeated decompression and deserialization of the same data.
Takeaways
The function composition operator (|) lets you chain functions into a pipeline, using _ as a placeholder for the value passed along, and _1, _2 for multiple arrays.
Quotas now support a written_rows counter to limit the number of rows a user can insert per time interval, with rejected inserts writing no data.
String filtering during scan (apply_string_filters_during_scan) checks LIKE, startsWith, and endsWith while deserializing a column, reducing peak memory by about 98% in tests without affecting execution time.
FAQ
How does the function composition operator work?
The function composition operator (|) chains functions into a pipeline. Use _ as a placeholder for the value passed along, or _1, _2 for multiple arrays. For example, lower | domainWithoutWWW | firstSignificantSubdomain | upper chains four functions.
Can quotas limit inserted rows?
Yes, you can cap ingestion by the number of rows a user writes using the written_rows counter in a quota. For example, CREATE QUOTA ingest_limit FOR INTERVAL 1 minute MAX written_rows = 100000, query_inserts = 250 TO ingest limits a user to 100,000 rows and 250 inserts per minute.
What is string filtering during scan?
String filtering during scan checks filters like LIKE, startsWith, and endsWith while deserializing a column, avoiding copying non-matching strings into memory. In a test with 9.98 million reviews, peak memory dropped from about 129 MiB to 2.54 MiB, a reduction of about 98%, while execution time remained similar.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.