[
https://issues.apache.org/jira/browse/SPARK-37716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-37716.
---------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
Issue resolved by pull request 34987
[https://github.com/apache/spark/pull/34987]
> 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
> Fix For: 3.3.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]