[ https://issues.apache.org/jira/browse/DRILL-8536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019342#comment-18019342 ]
Charles Givre commented on DRILL-8536: -------------------------------------- [~mbrannstrom] Is it your intention to implement this or is this just a feature request? If your plan is to implement it, I can assist if you need help with the Drill internals. > Add SQL functions tdigest_quantile, tdigest_min, and tdigest_max > ---------------------------------------------------------------- > > Key: DRILL-8536 > URL: https://issues.apache.org/jira/browse/DRILL-8536 > Project: Apache Drill > Issue Type: Improvement > Reporter: Mikael Brännström > Priority: Major > > There are two t-digest (histogram) related SQL functions, to construct and > merge t-digest data. > However, there is no way to read any useful information from the t-digest, > which makes the current two functions "tdigest" and "tdigest_merge" quite > pointless. > It is suggested that 3 new SQL functions are added to > org.apache.drill.exec.expr.fn.impl.TDigestFunctions: > > * tdigest_quantile(binary tdigest, double quantile) -> wrapped call to > TDigest.quantile(quantile) > * tdigest_min(binary tdigest) -> wrapped call to TDigest.min() > * tdigest_max(binary tdigest) -> wrapped call to TDigest.max() -- This message was sent by Atlassian Jira (v8.20.10#820010)