Skip to content

Commit b518114

Browse files
committed
address more comments
1 parent af97b99 commit b518114

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ import org.apache.spark.sql.test.SharedSparkSession
2323
class PostgreSQLDialectQuerySuite extends QueryTest with SharedSparkSession {
2424

2525
override def sparkConf: SparkConf =
26-
super.sparkConf
27-
.set(SQLConf.DIALECT.key, SQLConf.Dialect.POSTGRESQL.toString)
26+
super.sparkConf.set(SQLConf.DIALECT.key, SQLConf.Dialect.POSTGRESQL.toString)
2827

2928
test("cast string to boolean") {
30-
Seq("true", "tru", "tr", "t", " tRue ", " tRu ", "yes", "ye",
31-
"y", "1", "on").foreach { input =>
32-
checkAnswer(sql(s"select cast('$input' as boolean)"), Row(true))
29+
Seq("true", "tru", "tr", "t", " tRue ", " tRu ", "yes", "ye",
30+
"y", "1", "on").foreach { input =>
31+
checkAnswer(sql(s"select cast('$input' as boolean)"), Row(true))
3332
}
3433
Seq("false", "fals", "fal", "fa", "f", " fAlse ", " fAls ", "no", "n",
3534
"0", "off", "of").foreach { input =>

0 commit comments

Comments
 (0)