GitHub user StevenMPhillips opened a pull request:
https://github.com/apache/drill/pull/456
DRILL-4566: TDigest, median, and quantile functions
Adds tdigest, tdigest_merge, median, and quantile UDFS
Adds reduce aggregates rule to reduce:
median(x) -> tdigest_median(tdigest(x))
quantile(q, x) -> tdigest_quantile(q, tdigest(x))
Adds two-phase aggregate rule for tdigest
Also adds ability to specify tolerances in the TestBuilder
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/StevenMPhillips/drill drill-4566
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/456.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #456
----
commit b6a90053c7451d92b15807ba50057f5790985efc
Author: Steven Phillips <[email protected]>
Date: 2016-03-30T01:55:26Z
DRILL-4566: TDigest, median, and quantile functions
Adds tdigest, tdigest_merge, median, and quantile UDFS
Adds reduce aggregates rule to reduce:
median(x) -> tdigest_median(tdigest(x))
quantile(q, x) -> tdigest_quantile(q, tdigest(x))
Adds two-phase aggregate rule for tdigest
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---