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
[SPARK-15473][SQL] CSV data source writes header for empty data to be read back as column names #13252
Conversation
Test build #59101 has finished for PR 13252 at commit
|
Test build #59172 has finished for PR 13252 at commit
|
Test build #59365 has finished for PR 13252 at commit
|
Test build #60284 has finished for PR 13252 at commit
|
Test build #63486 has finished for PR 13252 at commit
|
Test build #64633 has finished for PR 13252 at commit
|
Test build #64693 has finished for PR 13252 at commit
|
Test build #67421 has finished for PR 13252 at commit
|
Let me suggest a generalized way latter because it does not look a clean fix. |
Sorry to bring up a closed PR but has this issue been resolved? SPARK-15473 is "in progress" but hasn't been updated in ~7 months. |
It's not resolved yet. I am not working on this for now. Please take over this if you are willing to do. |
What changes were proposed in this pull request?
This PR lets the CSV data source write the header when
header
option istrue
even if given data is empty. Currently, this is not writing header in this case.How was this patch tested?
Unit tests in
CSVSuite.scala
.