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

Reply via email to