Samples
Estimate the number of distinct values from a hyperloglog namedhyperloglog. The expected output is 98,814.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate the number of distinct values from a hyperloglog
hyperloglog. The expected output is 98,814.
SELECT distinct_count(hyperloglog(8192, data))
FROM generate_series(1, 100000) data
distinct_count
----------------
98814
distinct_count(
hyperloglog Hyperloglog
) RETURNS BIGINT
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hyperloglog | Hyperloglog | - | ✔ | The hyperloglog to extract the count from. |
| Column | Type | Description |
|---|---|---|
| distinct_count | BIGINT | The number of distinct elements counted by the hyperloglog. |