What's the error rate of APPROX_COUNT_DISTINCT ? #6590
Answered
by
EmmyMiao87
tarepanda1024
asked this question in
Q&A
-
I see the the APPROX_COUNT_DISTINCT and HLL_UNION_AGG are based on HyperLogLog algorithm.I wan't to know what's the difference between APPROX_COUNT_DISTINCT and HLL_UNION_AGG ? And what's the error rate of APPROX_COUNT_DISTINCT ? |
Beta Was this translation helpful? Give feedback.
Answered by
EmmyMiao87
Sep 8, 2021
Replies: 1 comment 1 reply
-
参数类型不一样,approx_count_distinct 参数类型没限制,但是 hll_union_agg 参数类型必须为 hll 类型。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EmmyMiao87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参数类型不一样,approx_count_distinct 参数类型没限制,但是 hll_union_agg 参数类型必须为 hll 类型。
实现上都用了hll 的算法,没差别。
误差率你可以 google 一下,hll 算法误差率,是有精确公式计算出来的