We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c7771 commit 7497742Copy full SHA for 7497742
sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
@@ -124,7 +124,7 @@ class SQLQueryTestSuite extends QueryTest with SharedSQLContext {
124
// val cleaned = input.split("\n").filterNot(_.matches("--.*(?<=[^\\\\]);")).mkString("\n")
125
val cleaned = input.split("\n").filterNot(_.startsWith("--")).mkString("\n")
126
// note: this is not a robust way to split queries using semicolon, but works for now.
127
- cleaned.split("(?<=[^\\\\]);").map(_.trim).filterNot(q => q == "").toSeq
+ cleaned.split("(?<=[^\\\\]);").map(_.trim).filter(_ != "").toSeq
128
}
129
130
// Run the SQL queries preparing them for comparison.
0 commit comments