News for hackers. Stuff that matters.
Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by philbe77 on Friday October 24, 2025 @03:18PM (#45698150)
good point :) - we can re-aggregate HyperLogLog (HLL) sketches to get a pretty accurate NDV (Count Distinct) - see Query.farm's DataSketches DuckDB extension here: https://github.com/Query-farm/datasketches

We also have Bitmap aggregation capabilities for exact count distinct - something I worked with Oracle, Snowflake, Databricks, and DuckDB labs on implementing. It isn't as fast as HLL - but it is 100% accurate...

Re:A sharded DuckDB on 63 nodes runs 1T row aggregation chal... by fifilura on Friday October 24, 2025 @05:29PM (#45699298)
I remember BigQuery had Distinct with HLL accuracy 10 years ago but rather quickly replaced it with actual accuracy.

How would you compare this solution to BigQuery?