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

window functions should not be allowed in window definitions

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0
    • None
    • SQL
    • None

    Description

      Currently, Spark allows the usage of window functions inside window definitions, such as:

       SELECT rank() OVER (ORDER BY rank() OVER (ORDER BY random()));

      However, in PgSQL such behavior is now allowed:

      postgres=# SELECT rank() OVER (ORDER BY rank() OVER (ORDER BY random()));
      ERROR:  window functions are not allowed in window definitions
      LINE 1: SELECT rank() OVER (ORDER BY rank() OVER (ORDER BY random())...

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: