HLL_RAW_AGG
Descriptionβ
The HLL_RAW_AGG function is an aggregate function, which is mainly used to merge multiple HyperLogLog data structures.
Aliasβ
- HLL_UNION
Syntaxβ
HLL_RAW_AGG(<hll>)
Parametersβ
Parameters | Description |
---|---|
<hll> | The HyperLogLog type expression to be calculated |
Return Valueβ
Returns the aggregated value of type HyperLogLog.
Exampleβ
select HLL_CARDINALITY(HLL_RAW_AGG(uv_set)) from test_uv;
+------------------------------------------+
| HLL_CARDINALITY(HLL_RAW_AGG(`uv_set`)) |
+------------------------------------------+
| 17721 |
+------------------------------------------+