Skip to content

5 New Array and Map Functions in ClickHouse 26.10

Video Thumbnail

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 up

Related videos

YouTube Video: IyI0YQBCy8U

How to

CDC ClickPipes: The Fastest Way to Replicate Your Database to ClickHouse

Marta Paes, Senior Product Manager at ClickHouse

YouTube Video: Mgsm11T7tO8

How to

Under-the-Hood: ClickHouse Incremental Materialized Views and Dictionaries

Maruthi Lokanathan, Solution Architect at ClickHouse Derek Chia, Principal TAM Architect at ClickHouse

Follow us

XBlueskySlackGithubTelegramMeetupRSS