Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/16954#discussion_r101597000
--- Diff: sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala
---
@@ -622,7 +622,12 @@ class SubquerySuite extends QueryTest with
SharedSQLContext {
test("SPARK-15370: COUNT bug with attribute ref in subquery input and
output ") {
checkAnswer(
- sql("select l.b, (select (r.c + count(*)) is null from r where l.a =
r.c) from l"),
+ sql(
--- End diff --
In this test, the query is not a valid query as its missing group by. It
used to pass before as we implicitly added r.c into aggregate grouping as part
of pulling up correlated predicates in analyzer.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]