Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/17636#discussion_r111833515 --- Diff: sql/core/src/test/resources/sql-tests/results/subquery/negative-cases/invalid-correlation.sql.out --- @@ -50,17 +50,67 @@ grouping expressions sequence is empty, and 't2.`t2b`' is not an aggregate funct -- !query 4 -select * -from t1 -where t1a in (select min(t2a) - from t2 - group by t2c - having t2c in (select max(t3c) - from t3 - group by t3b - having t3b > t2b )) +SELECT * +FROM t1 +WHERE t1a in (SELECT min(t2a) + FROM t2 + GROUP by t2c --- End diff -- Nit: `by` -> `BY`
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org