-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix FormatOptions::CSV
propagation
#10912
Conversation
Thank you so much for this contribution @svranesevic Can you perhaps add a test for this feature? Maybe in |
Marking as draft as I think this PR is no longer waiting on feedback. Please mark it as ready for review when it is ready for another look |
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.
Thank you @svranesevic -- this looks great to me
I merged up from main and updated the vendored code in this PR |
Thanks again @svranesevic 🚀 |
* Fix sink output schema being passed in to `FileSinkExec` where input schema was expected * Propagate CSV options (quote, double quote, and escape) through protos * Add test for double quotes * Test quote escape when double quotes are disabled * regen --------- Co-authored-by: svranesevic <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
/
Rationale for this change
Noticed while using
LogicalPlan::Copy
withFormatOptions::CSV
thatescape
andquote
options were not reflected in resulting CSV file.What changes are included in this PR?
Fix some of the
FormatOptions::CSV(CsvOptions)
not being propagated to/from protos - 75a9b4cAdd
double_quote
toCsvOptions
options - 75a9b4cFix wrong schema passed in to
DataSinkExec
when decodingJsonSink
,CsvSink
, andParquetSink
- 65ad9b6Are these changes tested?
First time contributor, would need guidance how/if to test these best.
Are there any user-facing changes?
double_quote
toCsvOptions
options - 75a9b4c