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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to