hyperloglog.
Use approx_count_distinct to create an intermediate aggregate from your raw data.
This intermediate form can then be used by one or more accessors in this
group to compute final results.
Optionally, multiple such intermediate aggregate objects can be combined
using rollup() before an accessor is applied.
Samples
Given a table calledsamples, with a column called weights, return
a hyperloglog over the weights column:
hyperloglog functions.
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
value | AnyElement | - | ✔ | The column containing the elements to count. The type must have an extended, 64-bit, hash function. |
Returns
Ahyperloglog object which can be passed to other hyperloglog APIs for rollups and final calculation