Skip to content

Commit 2ea551c

Browse files
author
younggyu chun
committed
[SPARK-27931][SQL] add a negative test case for "o"
1 parent abe9a84 commit 2ea551c

File tree

1 file changed

+1
-0
lines changed
  • sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
846846
checkCast("off", false)
847847
checkCast("of", false)
848848

849+
checkEvaluation(cast("o", BooleanType), null)
849850
checkEvaluation(cast("abc", BooleanType), null)
850851
checkEvaluation(cast("", BooleanType), null)
851852
}

0 commit comments

Comments
 (0)