You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/07/14 04:39:00 UTC

[jira] [Updated] (SPARK-27877) ANSI SQL: LATERAL derived table(T491)

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

Yuming Wang updated SPARK-27877:
--------------------------------
    Summary: ANSI SQL: LATERAL derived table(T491)  (was: Implement SQL-standard LATERAL subqueries)

> ANSI SQL: LATERAL derived table(T491)
> -------------------------------------
>
>                 Key: SPARK-27877
>                 URL: https://issues.apache.org/jira/browse/SPARK-27877
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> Subqueries appearing in {{FROM}} can be preceded by the key word {{LATERAL}}. This allows them to reference columns provided by preceding {{FROM}} items. A trivial example of {{LATERAL}} is:
> {code:sql}
> SELECT * FROM foo, LATERAL (SELECT * FROM bar WHERE bar.id = foo.bar_id) ss;
> {code}
> More details:
>  [https://www.postgresql.org/docs/9.3/queries-table-expressions.html#QUERIES-LATERAL]
>  [https://github.com/postgres/postgres/commit/5ebaaa49445eb1ba7b299bbea3a477d4e4c0430]



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