You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/05 15:02:52 UTC
[GitHub] [spark] gao634209276 commented on a change in pull request #33574: [SPARK-36339][SQL] References to grouping that not part of aggregation should be replaced
gao634209276 commented on a change in pull request #33574:
URL: https://github.com/apache/spark/pull/33574#discussion_r683539268
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -3405,6 +3405,26 @@ class SQLQuerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
}
}
+ test("SPARK-36339: References to grouping attributes should be replaced") {
+ withTempView("t") {
+ Seq("a", "a", "b").toDF("x").createOrReplaceTempView("t")
+ checkAnswer(
+ sql(
+ """
+ |select x, count(x) c from t
+ |group by x grouping sets(x)
Review comment:
Done
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org