v.23.1New Feature
Array Join Support for Map Type in ClickHouse
Array join support for the Map type, like the function "explode" in Spark. #43239 (李扬).Why it matters
This feature allows users to efficiently flattenMap type columns into multiple rows by expanding each key-value pair, enabling easier querying and analysis of map data structures.How to use it
Use theARRAY JOIN clause with a Map type column in your SELECT queries to expand map entries into separate rows.Example:
SELECT key, value
FROM table
ARRAY JOIN map_column