Hossein Falaki created SPARK-17916:

             Summary: CSV data source treats empty string as null no matter 
what nullValue option is
                 Key: SPARK-17916
                 URL: https://issues.apache.org/jira/browse/SPARK-17916
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.1
            Reporter: Hossein Falaki

When user configures {{nullValue}} in CSV data source, in addition to those 
values, all empty string values are also converted to null.


spark.read.format("csv").option("nullValue", "-")

We will find a null in both rows.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to