Skip to content

Commit 26551bf

Browse files
committed
Remove SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false".
1 parent 09c6fd1 commit 26551bf

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

sql/core/src/test/scala/org/apache/spark/sql/ExplainSuite.scala

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)