You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dylan Guedes (JIRA)" <ji...@apache.org> on 2019/07/29 11:55:00 UTC
[jira] [Updated] (SPARK-28553) subqueries must be aggregated before
hand
[ https://issues.apache.org/jira/browse/SPARK-28553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dylan Guedes updated SPARK-28553:
---------------------------------
Summary: subqueries must be aggregated before hand (was: subqueries always must be aggregated before hand)
> subqueries must be aggregated before hand
> -----------------------------------------
>
> Key: SPARK-28553
> URL: https://issues.apache.org/jira/browse/SPARK-28553
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Dylan Guedes
> Priority: Major
>
> Looks like Spark subqueries does not work well with variables and values from outside of subquery. For instance, this query work on PgSQL:
> {code:sql}
> SELECT lead(ten, (SELECT two FROM tenk1 WHERE s.unique2 = unique2)) OVER (PARTITION BY four ORDER BY ten) FROM tenk1 s WHERE unique2 < 10;{code}
> However, it does not work in Spark.
--
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