Skip to content

Commit 2ee8d19

Browse files
committed
Modify test.
1 parent 35f127a commit 2ee8d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,16 @@ class ExplainSuite extends ExplainSuiteHelper with DisableAdaptiveExecutionSuite
278278
}
279279

280280
test("explain formatted - check presence of subquery in case of AQE") {
281-
withTable("df1", "df2") {
281+
withTable("df1") {
282282
withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true") {
283283
withTable("df1") {
284-
spark.range(1)
284+
spark.range(1, 100)
285285
.write
286286
.format("parquet")
287287
.mode("overwrite")
288288
.saveAsTable("df1")
289289

290-
val sqlText = "EXPLAIN FORMATTED SELECT (SELECT id FROM df1) as v"
290+
val sqlText = "EXPLAIN FORMATTED SELECT (SELECT min(id) FROM df1) as v"
291291
val expected_pattern1 =
292292
"Subquery:1 Hosting operator id = 2 Hosting Expression = Subquery subquery#x"
293293

0 commit comments

Comments
 (0)