wankunde commented on code in PR #41685:
URL: https://github.com/apache/spark/pull/41685#discussion_r1236762820


##########
sql/core/src/test/scala/org/apache/spark/sql/DataFrameAggregateSuite.scala:
##########
@@ -1989,13 +1989,15 @@ class DataFrameAggregateSuite extends QueryTest
   }
 
   test("SPARK-43876: Enable fast hashmap for distinct queries") {
-    val df = testData2.distinct()
-    checkAnswer(df, testData2)
-    val output = new java.io.ByteArrayOutputStream()
-    Console.withOut(output) {
-      df.explain("codegen")
+    withSQLConf(SQLConf.ENABLE_TWOLEVEL_AGG_MAP.key -> "true") {

Review Comment:
   This UT will fail in SingleLevelAggregateHashMapSuite, which will disable 
ENABLE_TWOLEVEL_AGG_MAP. 
   
   
https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/AggregateHashMapSuite.scala#L25-L38
   



-- 
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]

Reply via email to