File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed
sql/core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -229,22 +229,19 @@ class ExplainSuite extends ExplainSuiteHelper with DisableAdaptiveExecutionSuite
229229 }
230230
231231 test(" SPARK-33853: explain codegen - check presence of subquery" ) {
232- withTable(" df1" , " df2" ) {
233- withSQLConf(SQLConf .WHOLESTAGE_CODEGEN_ENABLED .key -> " true" ,
234- SQLConf .ADAPTIVE_EXECUTION_ENABLED .key -> " false" ) {
235- withTable(" df1" ) {
236- spark.range(1 , 100 )
237- .write
238- .format(" parquet" )
239- .mode(" overwrite" )
240- .saveAsTable(" df1" )
241-
242- val sqlText = " EXPLAIN CODEGEN SELECT (SELECT min(id) FROM df1)"
243- val expectedText = " Found 3 WholeStageCodegen subtrees."
244-
245- withNormalizedExplain(sqlText) { normalizedOutput =>
246- assert(normalizedOutput.contains(expectedText))
247- }
232+ withSQLConf(SQLConf .WHOLESTAGE_CODEGEN_ENABLED .key -> " true" ) {
233+ withTable(" df1" ) {
234+ spark.range(1 , 100 )
235+ .write
236+ .format(" parquet" )
237+ .mode(" overwrite" )
238+ .saveAsTable(" df1" )
239+
240+ val sqlText = " EXPLAIN CODEGEN SELECT (SELECT min(id) FROM df1)"
241+ val expectedText = " Found 3 WholeStageCodegen subtrees."
242+
243+ withNormalizedExplain(sqlText) { normalizedOutput =>
244+ assert(normalizedOutput.contains(expectedText))
248245 }
249246 }
250247 }
You can’t perform that action at this time.
0 commit comments