Skip to content

Commit af97b99

Browse files
committed
address comments
1 parent 72a1539 commit af97b99

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/postgreSQL/StringUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import org.apache.spark.unsafe.types.UTF8String
2222
object StringUtils {
2323
// "true", "yes", "1", "false", "no", "0", and unique prefixes of these strings are accepted.
2424
private[this] val trueStrings =
25-
Set("true", "tru", "tr", "t", "yes", "ye", "y", "on", "1").map (UTF8String.fromString)
25+
Set("true", "tru", "tr", "t", "yes", "ye", "y", "on", "1").map(UTF8String.fromString)
2626

2727
private[this] val falseStrings =
2828
Set("false", "fals", "fal", "fa", "f", "no", "n", "off", "of", "0").map(UTF8String.fromString)

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
818818
"interval 1 years 3 months -3 days")
819819
}
820820

821-
test("cast string to boolean with Spark dialect") {
821+
test("cast string to boolean") {
822822
checkCast("t", true)
823823
checkCast("true", true)
824824
checkCast("tRUe", true)

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/postgreSQL/CastSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
2424
checkEvaluation(PostgreCastStringToBoolean(Literal(v)), expected)
2525
}
2626

27-
test("cast string to boolean with PostgreSQL dialect") {
27+
test("cast string to boolean") {
2828
checkPostgreCastStringToBoolean("true", true)
2929
checkPostgreCastStringToBoolean("tru", true)
3030
checkPostgreCastStringToBoolean("tr", true)

0 commit comments

Comments
 (0)