You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/12/22 18:48:00 UTC
[jira] [Assigned] (SPARK-37716) Allow LateralJoin node to host non-deterministic expressions
[ https://issues.apache.org/jira/browse/SPARK-37716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-37716:
------------------------------------
Assignee: Apache Spark
> Allow LateralJoin node to host non-deterministic expressions
> ------------------------------------------------------------
>
> 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: Apache Spark
> Priority: Major
>
> After https://issues.apache.org/jira/browse/SPARK-37199, Analyzer will block LateralJoin that has non-deterministic lateral subqueries. This should be allowed.
> For example:
> Query:
>
> {code:java}
> SELECT t1.* FROM t1 JOIN LATERAL (SELECT rand(0) + c2 AS c3); {code}
> Result:
> {code:java}
> org.apache.spark.sql.AnalysisException: nondeterministic expressions are only allowed in
> Project, Filter, Aggregate, Window, or Generate, but found:
> lateralsubquery(spark_catalog.default.t1.c2)
> in operator LateralJoin lateral-subquery#1 [c2#3], Inner {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