maropu commented on a change in pull request #30855: URL: https://github.com/apache/spark/pull/30855#discussion_r546327126
########## File path: sql/core/src/test/scala/org/apache/spark/sql/ExplainSuite.scala ########## @@ -277,6 +277,28 @@ class ExplainSuite extends ExplainSuiteHelper with DisableAdaptiveExecutionSuite } } + test("SPARK-33850: explain formatted - check presence of subquery in case of AQE") { + withTable("df1") { + withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true") { + withTable("df1") { + spark.range(1, 100) + .write + .format("parquet") + .mode("overwrite") + .saveAsTable("df1") Review comment: nit: `df1` -> `df` (this is a nit comment, so I think we don't need a follow-up pr to fix it) ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org