-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add merge_tdigest function #20520
add merge_tdigest function #20520
Conversation
presto-main/src/main/java/com/facebook/presto/operator/scalar/TDigestFunctions.java
Outdated
Show resolved
Hide resolved
CC: @steveburnett to review docs change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (documentation change only)
62471f6
to
901475c
Compare
Updated to include suggestion from @tdcmeehan. |
I need to address the failing checks, but @tdcmeehan - @jainavi17 had suggested the name |
Agreed on the naming |
901475c
to
2d0ad86
Compare
Codenotify: Notifying subscribers in CODENOTIFY files for diff 459a8b0...2d0ad86.
|
Updated function name to |
Description
Adding a scalar function to merge T-digests from an input array.
Motivation and Context
Existing issue: #18402
The aggregate function
MERGE
has existed for digests, but never the scalar equivalent.(previously opened in #20510 but closed due to rebase error)
Impact
No impact, net-new function.
Test Plan
Added unit tests.
Built with:
Release Notes
Please follow release notes guidelines and fill in the release notes below.
== RELEASE NOTES ==
General Changes
MERGE_TDIGEST
.MERGE_TDIGEST(CAST(ARRAY[digest1, digest2, ...] AS ARRAY(TDIGEST(DOUBLE))))