Approximate Algorithms in Apache Spark: HyperLogLog and Quantiles - The Databricks Blog