vranes commented on code in PR #60611:
URL: https://github.com/apache/spark/pull/60611#discussion_r4635642757


##########
sql/core/src/test/scala/org/apache/spark/sql/BinBySuite.scala:
##########
@@ -554,6 +579,231 @@ class BinBySuite extends QueryTest with 
SharedSparkSession {
     }
   }
 
+  gridTest("BIN BY codegen fuses wide output and bin filtering")(Seq(false, 
true)) { split =>
+    withSQLConf(
+        SQLConf.BIN_BY_ENABLED.key -> "true",
+        SQLConf.ENABLE_BIN_BY_CODEGEN.key -> "true",
+        SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false",
+        SQLConf.SESSION_LOCAL_TIMEZONE.key -> "UTC",
+        SQLConf.WHOLESTAGE_SPLIT_CONSUME_FUNC_BY_OPERATOR.key -> 
split.toString) {

Review Comment:
   The split grid did not change the BIN BY code, so I removed it from 'BIN BY 
codegen fuses wide output and bin filtering'. The new test 'BIN BY codegen 
splits its consume for a parent that reads every column' runs SELECT DISTINCT * 
over BIN BY with a NULL range and ranges that span several bins. It checks that 
the BIN BY stage has hashAgg_doConsume only when splitting is on, and compares 
the result with codegen off



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