Github user sureshthalamati commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12904#discussion_r62444274
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
 ---
    @@ -555,4 +558,37 @@ class CSVSuite extends QueryTest with SharedSQLContext 
with SQLTestUtils {
     
         assert(numbers.count() == 8)
       }
    +
    +  test("load data with empty quoted string fields.") {
    +    val results = sqlContext
    +      .read
    +      .format("csv")
    +      .options(Map(
    +        "header" -> "true",
    +        "nullValue" -> null,
    --- End diff --
    
    If nullValue is not set  it  will return empty string for null values by 
default.  The reason I set it explicitly is to make sure my fix is working.  
Before my fix it was  retruning null for the empty quoted string , and empty  
string for null values by default.  



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to