Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.2.0
-
None
-
None
Description
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.
Attachments
Issue Links
- is related to
-
SPARK-43098 Should not handle the COUNT bug when the GROUP BY clause of a correlated scalar subquery is non-empty
- Resolved