facebook/presto — pull request #1814 by martint (2014-10-15 01:25:53+00:00)
Title: Implement numeric_histogram aggregation function

This is a function for computing approximate histograms based loosely on

Yael Ben-Haim and Elad Tom-Tov, "A streaming parallel decision tree algorithm",
J. Machine Learning Research 11 (2010), pp. 849--872.

It supports the following signatures:

- numeric_histogram(bigint buckets, double value, double weight) -> map
- numeric_histogram(bigint buckets, double value) -> map

The second variant is a shorthand for weight = 1