Skip to content
Closed
Prev Previous commit
Next Next commit
respond to code review comments
  • Loading branch information
dtenedor committed Mar 16, 2023
commit 35e1bd61b6e028be915e7b20b638b40e67ac9218
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ class SQLQueryTestSuite extends QueryTest with SharedSparkSession with SQLHelper
if (otherCodes.nonEmpty) {
queries ++= splitWithSemicolon(otherCodes.toSeq)
}
queries
queries.toSeq
} else {
splitWithSemicolon(allCode.toSeq).toSeq
splitWithSemicolon(allCode).toSeq
}

// List of SQL queries to run
val queries = tempQueries.map(_.trim).filter(_ != "")
val queries = tempQueries.map(_.trim).filter(_ != "").toSeq
// Fix misplacement when comment is at the end of the query.
.map(_.split("\n").filterNot(_.startsWith("--")).mkString("\n")).map(_.trim).filter(_ != "")

Expand Down