Ngone51 commented on a change in pull request #31470:
URL: https://github.com/apache/spark/pull/31470#discussion_r599389919
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisSuite.scala
##########
@@ -1051,69 +1051,69 @@ class AnalysisSuite extends AnalysisTest with Matchers {
}
test("SPARK-22748: Analyze __grouping__id as a literal function") {
- assertAnalysisSuccess(parsePlan(
+ assertAnalysisSuccess(EliminateSubqueryAliases(parsePlan(
Review comment:
I just found that the query:
```sql
SELECT * FROM (
SELECT a, b, count(1) FROM TaBlE2
GROUP BY a, b GROUPING SETS ((a, b), ())
) WHERE grouping__id > 0
```
was actually wrong, as it missed selecting `grouping__id` in the subquery.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]