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/08/08 13:14:00 UTC

[jira] [Created] (SPARK-28661) Hypothetical-Set Aggregate Functions

Yuming Wang created SPARK-28661:
-----------------------------------

             Summary: Hypothetical-Set Aggregate Functions
                 Key: SPARK-28661
                 URL: https://issues.apache.org/jira/browse/SPARK-28661
             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||
|{{rank(_args_}}) WITHIN GROUP (ORDER BY {{sorted_args}})|{{VARIADIC}} {{"any"}}|{{VARIADIC}} {{"any"}}|{{bigint}}|No|rank of the hypothetical row, with gaps for duplicate rows|
|{{dense_rank(_args_}}) WITHIN GROUP (ORDER BY {{sorted_args}})|{{VARIADIC}} {{"any"}}|{{VARIADIC}} {{"any"}}|{{bigint}}|No|rank of the hypothetical row, without gaps|
|{{percent_rank(_args_}}) WITHIN GROUP (ORDER BY {{sorted_args}})|{{VARIADIC}} {{"any"}}|{{VARIADIC}} {{"any"}}|{{double precision}}|No|relative rank of the hypothetical row, ranging from 0 to 1|
|{{cume_dist(_args_}}) WITHIN GROUP (ORDER BY {{sorted_args}})|{{VARIADIC}} {{"any"}}|{{VARIADIC}} {{"any"}}|{{double precision}}|No|relative rank of the hypothetical row, ranging from 1/_{{N}}_ to 1|

[https://www.postgresql.org/docs/11/functions-aggregate.html#FUNCTIONS-HYPOTHETICAL-TABLE]



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org