cloud-fan commented on a change in pull request #27701: [SPARK-30953][SQL]
InsertAdaptiveSparkPlan should apply AQE on child plan of write commands
URL: https://github.com/apache/spark/pull/27701#discussion_r407337711
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -899,4 +900,16 @@ class AdaptiveQueryExecSuite
checkPlanDescription(mode, expected)
}
}
+
+ test("SPARK-30953: InsertAdaptiveSparkPlan should apply AQE on child plan of
write commands") {
+ withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true") {
+ spark.range(10).repartition(1).selectExpr("id as a", "id * 2 as b")
+ .createOrReplaceTempView("t0")
Review comment:
wrap the test with `withTempView`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]