You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/08 05:07:00 UTC
[jira] [Created] (SPARK-27980) Add built-in Ordered-Set Aggregate
Functions: percentile_cont
Yuming Wang created SPARK-27980:
-----------------------------------
Summary: Add built-in Ordered-Set Aggregate Functions: percentile_cont
Key: SPARK-27980
URL: https://issues.apache.org/jira/browse/SPARK-27980
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 3.0.0
Reporter: Yuming Wang
||Function||Direct Argument Type(s)||Aggregated Argument Type(s)||Return Type||Partial Mode||Description||
|{{percentile_cont(_{{fraction}}_) WITHIN GROUP (ORDER BY _{{sort_expression}}_)}}|{{double precision}}|{{double precision}} or {{interval}}|same as sort expression|No|continuous percentile: returns a value corresponding to the specified fraction in the ordering, interpolating between adjacent input items if needed|
|{{percentile_cont(_{{fractions}}_) WITHIN GROUP (ORDER BY_{{sort_expression}}_)}}|{{double precision[]}}|{{double precision}} or {{interval}}|array of sort expression's type|No|multiple continuous percentile: returns an array of results matching the shape of the _{{fractions}}_ parameter, with each non-null element replaced by the value corresponding to that percentile|
https://www.postgresql.org/docs/current/functions-aggregate.html
Other DBs:
https://docs.aws.amazon.com/redshift/latest/dg/r_PERCENTILE_CONT.html
https://docs.teradata.com/reader/756LNiPSFdY~4JcCCcR5Cw/RgAqeSpr93jpuGAvDTud3w
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Functions/Analytic/PERCENTILE_CONTAnalytic.htm?tocpath=SQL%20Reference%20Manual%7CSQL%20Functions%7CAnalytic%20Functions%7C_____25
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org