Skip to content

Commit 42910c2

Browse files
committed
Optimize code
1 parent c7b565b commit 42910c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ExpressionsSchemaSuite extends QueryTest with SharedSparkSession {
136136
// Note: We need to filter out the commands that set the parameters, such as:
137137
// SET spark.sql.parser.escapedStringLiterals=true
138138
example.split(" > ").tail
139-
.filterNot(_.trim.startsWith("SET")).take(2).toList.foreach(_ match {
139+
.filterNot(_.trim.startsWith("SET")).take(1).foreach(_ match {
140140
case exampleRe(sql, expected) =>
141141
val df = spark.sql(sql)
142142
val schema = df.schema.catalogString

0 commit comments

Comments
 (0)