You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Allison Wang (Jira)" <ji...@apache.org> on 2021/07/13 04:31:00 UTC

[jira] [Created] (SPARK-36113) Unify the logic to handle COUNT bug for scalar and lateral subqueries

Allison Wang created SPARK-36113:
------------------------------------

             Summary: Unify the logic to handle COUNT bug for scalar and lateral subqueries
                 Key: SPARK-36113
                 URL: https://issues.apache.org/jira/browse/SPARK-36113
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Allison Wang


Currently, for scalar subqueries, the logic to handle the count bug is in `RewriteCorrelatedScalarSubquery` (constructLeftJoins) while lateral subqueries rely on `DecorrelateInnerQuery` to handle the COUNT bug. 

We should unify them without introducing additional left outer joins for scalar subqueries.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org