[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to