HyperLogLog in Presto: Faster cardinality estimation
code.fb.com
code.fb.com
Though a few things seem missed in the article. HyperLogLog has been around I believe over 10 years now. It's been supported for Postgres for over 5 years [1] now as an extension[2]. It is great to see it growing further with Facebook adding support for it for Presto.
[1]. https://research.neustar.biz/2012/10/25/sketch-of-the-day-hy...
[2]. https://www.citusdata.com/blog/2017/06/30/efficient-rollup-w...
I can't seem to prove this rigorously, am I understanding the paper correclty?
Redis uses a modified 64-bit MurmurHash2, for example.