v.21.12New Features
Add Map Combinator and Rename Mapped Arrays in ClickHouse
Add Map combinator forMaptype. - Rename oldsum-, min-, max- Mapfor mapped arrays tosum-, min-, max- MappedArrays. #24539 (Ildus Kurbangaliev).
Why it matters
The feature provides a native combinator to perform aggregation onMap type columns, enabling more straightforward and efficient operations on map-structured data. Renaming the old combinators clarifies their purpose by distinguishing those that operate on mapped arrays from those now introduced for Map types, thus improving usability and reducing ambiguity.How to use it
Users can apply the newmap combinator directly in aggregation queries for Map columns. The old combinators for mapped arrays have been renamed, so users should update their queries to use the new names sum-MappedArrays, min-MappedArrays, and max-MappedArrays when working with mapped arrays.