Skip to main content

groupUniqArray

Introduced in: v1.1.0 Creates an array from different argument values. The memory consumption of this function is the same as for the uniqExact function. Syntax
Parameters
  • max_size — Limits the size of the resulting array to max_size elements. groupUniqArray(1)(x) is equivalent to [any(x)]. UInt64
Arguments
  • x — Expression. Any
Returned value Returns an array of unique values. Array Examples Usage example
Query
Response
With max_size parameter
Query
Response
Last modified on June 23, 2026