[ https://issues.apache.org/jira/browse/SPARK-25574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liuxian updated SPARK-25574: ---------------------------- Description: 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| +-----+--++---------+ was: 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| +----+---+----+-----+ > 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 > Priority: Minor > > 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