Skip to content

Commit 9b5aa94

Browse files
committed
Update SQLMetricsSuite.scala
1 parent 8107d20 commit 9b5aa94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,7 @@ class SQLMetricsSuite extends SharedSparkSession with SQLMetricsTestUtils
797797
"org.apache.spark.sql.execution.metric.CustomFileCommitProtocol") {
798798
withTable("t", "t2") {
799799
sql("CREATE TABLE t(id STRING) USING PARQUET")
800-
sql("INSERT INTO TABLE t SELECT 'abc'")
801-
sql("CREATE TABLE t2(id STRING) USING PARQUET")
802-
val df = sql("INSERT INTO TABLE t2 SELECT * FROM t")
800+
val df = sql("INSERT INTO TABLE t SELECT 'abc'")
803801
val insert = df.queryExecution.executedPlan.collect {
804802
case CommandResultExec(_, dataWriting: DataWritingCommandExec, _) => dataWriting.cmd
805803
}

0 commit comments

Comments
 (0)