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 →
使用 Theta Sketch Framework 近似计算不同参数值的数量。
实现细节
uniqTheta(x[, ...])
x
Tuple(T)
Array(T)
Date
DateTime
String
(U)Int*
Float*
Decimal
UInt64
CREATE TABLE example_theta ( id UInt32, category String ) ENGINE = Memory; INSERT INTO example_theta VALUES (1, 'A'), (2, 'B'), (3, 'A'), (4, 'C'), (5, 'B'), (6, 'A'); SELECT uniqTheta(category) as theta_unique_categories FROM example_theta;
┌─theta_unique_categories─┐ │ 3 │ └─────────────────────────┘
此页面对您有帮助吗?