GitHub user lazyman500 opened a pull request:
https://github.com/apache/spark/pull/5059
[Spark-5068][SQL]Fix bug query data when path doesn't exist for HiveContext
This RP follow up PR #3907 & #3891 & #4356.
According to @marmbrus @liancheng 's comment,I try to use fs.globStatus
to retrieve all FileStatus objects under path(s), and then do the filtering
locally.
[1]. get path pathPattern, and put it into pathPatternSet.
(hdfs://cluster/user/demo/2016/08/12 -> hdfs://cluster/user/demo/*/*/*)
[2]. retrieve all FileStatus objects ,and cache them by undating
existPathSet.
[3]. do the filtering locally
[4]. if we have new pathPattern,do 1,2 step again. (external table maybe
have more than one partition pathPattern)
@chenghao-intel @jeanlyn
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lazyman500/spark SPARK-5068
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/5059.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 #5059
----
commit 41f60ce2044b289e7cf83a29c72d5f22f9829751
Author: lazymam500 <[email protected]>
Date: 2015-03-16T03:20:20Z
Merge pull request #1 from apache/master
update
commit 04c443cc039814d0e1f2ab2ec636ad00256d63fc
Author: lazyman <[email protected]>
Date: 2015-03-17T02:56:53Z
SPARK-5068: fix bug when partition path doesn't exists #2
----
---
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]