Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/20068#discussion_r158616591
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
---
@@ -1248,4 +1248,49 @@ class CSVSuite extends QueryTest with
SharedSQLContext with SQLTestUtils {
Row("0,2013-111-11 12:13:14") :: Row(null) :: Nil
)
}
+
+ test("SPARK-17916: An empty string should not be coerced to null when
nullValue is passed.") {
+ val sparkSession = spark
--- End diff --
I think we can just use `spark`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]