Github user jurriaan commented on the pull request:
https://github.com/apache/spark/pull/13267#issuecomment-221380701
@rxin
An example using the following dataframe:
```
spark.createDataFrame([['test "quote"', 123, 'it "works"!', '"very" well']])
```
The default CSV behaviour will save the data like this when you specify `"`
as quote and as escape char:
```
test "quote",123,it "works"!,"""very"" well"
```
With quoteEscapingEnabled set to true the output looks like this:
```
"test ""quote""",123,"it ""works""!","""very"" well"
```
As you can see the default does wrap a value in quotes only if it starts
with quotes. When quoteEscapingEnabled is turned on it wraps all values
containing quotation characters in quotes. This is needed in some CSV dialects.
---
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]