-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-13638][SQL] Add quoteAll option to CSV DataFrameWriter #13374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #3031 has finished for PR 13374 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we remove this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
|
Rebased, ping @rxin @HyukjinKwon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems escapeAll and quoteAll are mixed (across the updated files)..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :)
fd07fdf to
492391d
Compare
|
@jurriaan should this be called quoteAll rather than escapeAll? |
|
I thought it should be named in line with the escapeQuotes method, but what it's doing is more like quoting all values then escaping all. So i guess that name could make sense after all |
|
Yup... would be great if you can update this. Otherwise LGTM. |
|
@rxin Sorry for the confusion, fixed it :) |
|
Test build #3171 has finished for PR 13374 at commit
|
|
Merging in master/2.0. Thanks. |
## What changes were proposed in this pull request? Adds an quoteAll option for writing CSV which will quote all fields. See https://issues.apache.org/jira/browse/SPARK-13638 ## How was this patch tested? Added a test to verify the output columns are quoted for all fields in the Dataframe Author: Jurriaan Pruis <email@jurriaanpruis.nl> Closes #13374 from jurriaan/csv-quote-all. (cherry picked from commit 38cf8f2) Signed-off-by: Reynold Xin <rxin@databricks.com>
|
Test build #3172 has finished for PR 13374 at commit
|
What changes were proposed in this pull request?
Adds an quoteAll option for writing CSV which will quote all fields.
See https://issues.apache.org/jira/browse/SPARK-13638
How was this patch tested?
Added a test to verify the output columns are quoted for all fields in the Dataframe