HLL_UNION_AGG (Lakehouse v2)
通过计算并集来聚合 HLL 值。
Analyze 语法
Section titled “Analyze 语法”func.hll_union_agg(get_column(table, 'hll_col'))Analyze 示例
Section titled “Analyze 示例”func.hll_union_agg(get_column(table, 'hll_col'))
┌─────────────┐│ (hll value) │└─────────────┘SQL 语法
Section titled “SQL 语法”HLL_UNION_AGG(<hll_col>)SQL 示例
Section titled “SQL 示例”SELECT HLL_CARDINALITY(HLL_UNION_AGG(hll_col)) FROM segments;
┌──────┐│ 8000 │└──────┘