GitHub user uncleGen opened a pull request:
https://github.com/apache/spark/pull/16370
[SPARK-18960][SQL][SS] Avoid double reading file which is being copied.
## What changes were proposed in this pull request?
In HDFS, when we copy a file into target directory, there will a temporary
`._COPY_` file for a period of time. The duration depends on file size. If we
do not skip this file, we will may read the same data for two times.
## How was this patch tested?
update unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/uncleGen/spark SPARK-18960
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16370.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 #16370
----
commit 1d248c30bb6872494b82fe16a584b9b801058c58
Author: uncleGen <[email protected]>
Date: 2016-12-21T03:36:04Z
cp
----
---
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]