You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dylan Guedes (JIRA)" <ji...@apache.org> on 2019/08/07 18:28:00 UTC

[jira] [Updated] (SPARK-28648) Adds support to `groups` unit type in window clauses

     [ https://issues.apache.org/jira/browse/SPARK-28648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dylan Guedes updated SPARK-28648:
---------------------------------
    Summary: Adds support to `groups` unit type in window clauses  (was: Adds support to `groups` in window clauses)

> Adds support to `groups` unit type in window clauses
> ----------------------------------------------------
>
>                 Key: SPARK-28648
>                 URL: https://issues.apache.org/jira/browse/SPARK-28648
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Dylan Guedes
>            Priority: Major
>
> Spark currently support the two most common window functions unit types: rows and ranges. However, in PgSQL a new type was added: `groups`. 
> According to [this source|https://blog.jooq.org/2018/07/05/postgresql-11s-support-for-sql-standard-groups-and-exclude-window-function-clauses/], the difference is:
> """ROWS counts the exact number of rows in the frame.
> RANGE performs logical windowing where we don’t count the number of rows, but look for a value offset.
> GROUPS counts all groups of tied rows within the window."""



--
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