Slackbot
01/12/2024, 3:59 PMMike Sherman
01/12/2024, 4:21 PMAPPROX_COUNT_DISTINCT with HyperUnique:
Use the APPROX_COUNT_DISTINCT function with a hyperUnique aggregator during ingestion to estimate the number of distinct bit patterns in a column.
This approach is approximate but often sufficient for many use cases.Mike Sherman
01/12/2024, 4:21 PMSELECT APPROX_COUNT_DISTINCT(my_bit_column) FROM my_datasource;Fabrice Baranski
01/15/2024, 9:32 AMFabrice Baranski
01/15/2024, 11:22 AMWINDOW w AS (
ORDER BY metric DESC
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
)Mike Sherman
01/15/2024, 1:59 PM