Skip to content

Commit f31f69e

Browse files
committed
Fix existing tests for null
1 parent 33288c8 commit f31f69e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVTypeCastSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class CSVTypeCastSuite extends SparkFunSuite {
7373

7474
test("String type should always return the same as the input") {
7575
assert(
76-
CSVTypeCast.castTo("", StringType, nullable = true, CSVOptions()) ==
76+
CSVTypeCast.castTo("", StringType, nullable = true, CSVOptions("nullValue", null)) ==
7777
UTF8String.fromString(""))
7878
assert(
79-
CSVTypeCast.castTo("", StringType, nullable = false, CSVOptions()) ==
79+
CSVTypeCast.castTo("", StringType, nullable = false, CSVOptions("nullValue", null)) ==
8080
UTF8String.fromString(""))
8181
}
8282

0 commit comments

Comments
 (0)