GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/11999
[SPARK-14201][SQL] handle empty file for new data source strategy
## What changes were proposed in this pull request?
It's possible that users will write empty files to data dir. For example,
write data to JSON data source with one line string, and default parallelism is
2, we will write an empty file and a file with all data. The new data source
should be able to handle it.
## How was this patch tested?
new tests in `FileSourceStrategySuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark empty-file
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11999.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 #11999
----
commit 3ab1a187a2878ca0bfcb2b91812ba064aeeda494
Author: Wenchen Fan <[email protected]>
Date: 2016-03-28T15:40:41Z
handle empty file for new data source strategy
----
---
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]