You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2021/12/27 09:05:00 UTC
[jira] [Assigned] (SPARK-37716) Allow LateralJoin node to host non-deterministic expressions when the outer query is a single row relation
[ https://issues.apache.org/jira/browse/SPARK-37716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-37716:
-----------------------------------
Assignee: Allison Wang
> Allow LateralJoin node to host non-deterministic expressions when the outer query is a single row relation
> ----------------------------------------------------------------------------------------------------------
>
> Key: SPARK-37716
> URL: https://issues.apache.org/jira/browse/SPARK-37716
> Project: Spark
> Issue Type: Task
> Components: SQL
> Affects Versions: 3.2.1
> Reporter: Allison Wang
> Assignee: Allison Wang
> Priority: Major
>
> After https://issues.apache.org/jira/browse/SPARK-37199, Analyzer will block LateralJoin that has non-deterministic lateral subqueries. But when the outer query is a single row relation, this should be allowed
> For example:
> Query:
> {code:java}
> SELECT * FROM VALUES(0) t(x) JOIN LATERAL (SELECT rand(0) + x AS y); {code}
> Result:
> {code:java}
> org.apache.spark.sql.AnalysisException: nondeterministic expressions are only allowed in
> Project, Filter, Aggregate or Window{code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org