peter-toth commented on code in PR #56275:
URL: https://github.com/apache/spark/pull/56275#discussion_r3363664801


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/QueryPlanningTrackerEndToEndSuite.scala:
##########
@@ -58,6 +58,29 @@ class QueryPlanningTrackerEndToEndSuite extends StreamTest {
       StopStream)
   }
 
+  test("SPARK-57212: Track preparation rules") {
+    val df = spark.range(1000).selectExpr("count(*)")
+    df.collect()
+    val ruleNames = df.queryExecution.tracker.rules.keySet
+    assert(ruleNames.contains(classOf[
+      org.apache.spark.sql.execution.exchange.EnsureRequirements].getName))
+    assert(ruleNames.contains(classOf[
+      org.apache.spark.sql.execution.CollapseCodegenStages].getName))
+  }

Review Comment:
   Yeah, you are right it is better to disable AQE for this test: 
https://github.com/apache/spark/pull/56275/commits/2a6d6ac2b9d905ebd7d5eae8e13f2d906215fb29



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