Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
根据不同的参数值创建数组。
uniqExact
groupUniqArray(x) groupUniqArray(max_size)(x)
max_size
groupUniqArray(1)(x)
[any(x)]
UInt64
x
Any
Array
CREATE TABLE t (x UInt8) ENGINE = Memory; INSERT INTO t VALUES (1), (2), (1), (3), (2), (4); SELECT groupUniqArray(x) FROM t;
┌─groupUniqArray(x)─┐ │ [1,2,3,4] │ └───────────────────┘
SELECT groupUniqArray(2)(x) FROM t;
┌─groupUniqArray(2)(x)─┐ │ [1,2] │ └──────────────────────┘
此页面对您有帮助吗?