You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (Jira)" <ji...@apache.org> on 2019/09/13 17:41:00 UTC

[jira] [Resolved] (SPARK-28566) window functions should not be allowed in window definitions

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

Xiao Li resolved SPARK-28566.
-----------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>
> 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
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org