cloud-fan commented on code in PR #36011:
URL: https://github.com/apache/spark/pull/36011#discussion_r844607703


##########
sql/core/src/test/scala/org/apache/spark/sql/SparkSessionExtensionSuite.scala:
##########
@@ -406,6 +408,33 @@ class SparkSessionExtensionSuite extends SparkFunSuite {
       session.sql("SELECT * FROM v")
     }
   }
+
+  test("SPARK-38697: Extend SparkSessionExtensions to inject rules into AQE 
Optimizer") {
+    def checkLimit(df: Dataset[java.lang.Long], hasLimit: Boolean): Unit = {
+      def executedPlan: SparkPlan = df.queryExecution.executedPlan match {
+        case aqe: AdaptiveSparkPlanExec => aqe.executedPlan
+        case other => other

Review Comment:
   let's explicitly turn on AQE in the test, so that we don't need this `other` 
case. This feature is available in AQE anyway.



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