bersprockets commented on code in PR #37825:
URL: https://github.com/apache/spark/pull/37825#discussion_r967860756
##########
sql/core/src/test/scala/org/apache/spark/sql/DataFrameAggregateSuite.scala:
##########
@@ -1451,6 +1451,22 @@ class DataFrameAggregateSuite extends QueryTest
val df = Seq(1).toDF("id").groupBy(Stream($"id" + 1, $"id" + 2):
_*).sum("id")
checkAnswer(df, Row(2, 3, 1))
}
+
+ test("SPARK-40382: All distinct aggregation children are semantically
equivalent") {
Review Comment:
This test succeeds without the changes to RewriteDistinctAggregates. It's
just a sanity test to check that the grouping by semantic equivalence doesn't
break this case.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]