Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-28648

Adds support to `groups` unit type in window clauses

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      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, 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."""

      Attachments

        Activity

          People

            Unassigned Unassigned
            DylanGuedes Dylan Guedes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: