spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dylan Guedes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-28566) window functions should not be allowed in window definitions
Date Tue, 30 Jul 2019 17:22:00 GMT
Dylan Guedes created SPARK-28566:
------------------------------------

             Summary: window functions should not be allowed in window definitions
                 Key: SPARK-28566
                 URL: https://issues.apache.org/jira/browse/SPARK-28566
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Dylan Guedes


Currently, Spark allows the usage of window functions inside window definitions, such as:
{code:sql}
 SELECT rank() OVER (ORDER BY rank() OVER (ORDER BY random()));{code}
However, in PgSQL such behavior is now allowed:
{code:sql}
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())...{code}



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


Mime
View raw message