Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
3.0.0
-
None
-
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())...