GitHub user jurriaan opened a pull request:
https://github.com/apache/spark/pull/13267
[SPARK-15493][SQL] Allow setting the quoteEscapingEnabled flag when writing
CSV
## What changes were proposed in this pull request?
See
https://github.com/uniVocity/univocity-parsers/blob/f3eb2af26374940e60d91d1703bde54619f50c51/src/main/java/com/univocity/parsers/csv/CsvWriterSettings.java#L231-L247
This kind of functionality is needed to be able to write Amazon Redshift
compatible CSV files
(https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-format.html#copy-csv)
https://issues.apache.org/jira/browse/SPARK-15493
## How was this patch tested?
Added a test that verifies the output is quoted correctly.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jurriaan/spark quote-escaping
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13267.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13267
----
commit 23cb46c83afd4458078c204665130091a65ceec6
Author: Jurriaan Pruis <[email protected]>
Date: 2016-05-23T22:25:52Z
[SPARK-15493][SQL] Allow setting the quoteEscapingEnabled flag when writing
CSV
See
https://github.com/uniVocity/univocity-parsers/blob/f3eb2af26374940e60d91d1703bde54619f50c51/src/main/java/com/univocity/parsers/csv/CsvWriterSettings.java#L231-L247
This kind of functionality is needed to be able to write Amazon Redshift
compatible CSV files
(https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-format.html#copy-csv)
https://issues.apache.org/jira/browse/SPARK-15493
----
---
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]