5 New Array and Map Functions in ClickHouse 26.10
Mark Needham
ClickHouse 26.10 adds five handy functions for working with arrays and maps. In this short SQL demo, Mark Needham uses UK weather forecasts to find the coldest and warmest temperatures, compare daily temperature ranges, and remove array elements and map entries.
You'll see how to find the positions of minimum and maximum values with arrayMinIndex and arrayMaxIndex, including passing a lambda to compare daily temperature ranges. We also remove elements by position with arrayRemoveAt, turn maps into arrays of key-value tuples with mapEntries, and remove entries for a specific key with mapRemove.
Documentation:
Get started today
Interested in seeing how ClickHouse works on your data? Get started with ClickHouse Cloud in minutes and receive $300 in free credits.
Sign upRelated videos
View all Videos
How to
Inspect incoming data with INSERT … RETURNING in ClickHouse
Use INSERT … RETURNING in ClickHouse 26.11 to inspect generated values, sample incoming rows, find invalid ratings, and summarise an ingestion batch.

How to
Reading and writing Vortex files with ClickHouse (26.11)
Query and export Vortex files with ClickHouse 26.11, using a FineWeb dataset containing just over a million web pages.
