mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
14 lines
540 B
Markdown
14 lines
540 B
Markdown
---
|
|
slug: /en/sql-reference/aggregate-functions/reference/groupuniqarray
|
|
sidebar_position: 154
|
|
---
|
|
|
|
# groupUniqArray
|
|
|
|
Syntax: `groupUniqArray(x)` or `groupUniqArray(max_size)(x)`
|
|
|
|
Creates an array from different argument values. Memory consumption is the same as for the [uniqExact](../../../sql-reference/aggregate-functions/reference/uniqexact.md) function.
|
|
|
|
The second version (with the `max_size` parameter) limits the size of the resulting array to `max_size` elements.
|
|
For example, `groupUniqArray(1)(x)` is equivalent to `[any(x)]`.
|