liuxian created SPARK-25574:
-------------------------------

             Summary: Add an option `keepQuotes` for parsing csv  file
                 Key: SPARK-25574
                 URL: https://issues.apache.org/jira/browse/SPARK-25574
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: liuxian


In our project, when we read the CSV file, we hope to keep quotes.

For example:

We have such a record in the CSV file.:

*ab,cc,,"c,ddd"*

We hope it displays like this:

+----+---+----+-------+
| _c0|_c1| _c2|    _c3|
+----+---+----+-------+
|  ab| cc|null|*"c,ddd"*|

 

not like this:

+----+---+----+-----+
| _c0|_c1| _c2|  _c3|
+----+---+----+-----+
|  ab| cc|null|c,ddd|
+----+---+----+-----+



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to