{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5059","labels_url":"https://api.github.com/repos/apache/spark/issues/5059/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5059/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5059/events","html_url":"https://github.com/apache/spark/pull/5059","id":62273487,"number":5059,"title":"[Spark-5068][SQL]Fix bug query data when path doesn't exist for HiveContext","user":{"login":"lazyman500","id":2443477,"avatar_url":"https://avatars.githubusercontent.com/u/2443477?v=3","gravatar_id":"","url":"https://api.github.com/users/lazyman500","html_url":"https://github.com/lazyman500","followers_url":"https://api.github.com/users/lazyman500/followers","following_url":"https://api.github.com/users/lazyman500/following{/other_user}","gists_url":"https://api.github.com/users/lazyman500/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyman500/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyman500/subscriptions","organizations_url":"https://api.github.com/users/lazyman500/orgs","repos_url":"https://api.github.com/users/lazyman500/repos","events_url":"https://api.github.com/users/lazyman500/events{/privacy}","received_events_url":"https://api.github.com/users/lazyman500/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-17T03:28:44Z","updated_at":"2015-03-17T22:56:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5059","html_url":"https://github.com/apache/spark/pull/5059","diff_url":"https://github.com/apache/spark/pull/5059.diff","patch_url":"https://github.com/apache/spark/pull/5059.patch"},"body":"This PR follow up PR #3907 & #3891 & #4356.\r\nAccording 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.\r\n\r\n[1]. get path pathPattern, and put it into pathPatternSet. (hdfs://cluster/user/demo/2016/08/12 -> hdfs://cluster/user/demo/*/*/*)\r\n[2]. retrieve all FileStatus objects ,and cache them by undating existPathSet.\r\n[3]. do the filtering locally\r\n[4]. if we have new pathPattern,do 1,2 step again. (external table maybe have more than one partition pathPattern)   \r\n\r\n@chenghao-intel @jeanlyn"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/82632708","html_url":"https://github.com/apache/spark/pull/5059#issuecomment-82632708","issue_url":"https://api.github.com/repos/apache/spark/issues/5059","id":82632708,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T22:56:12Z","updated_at":"2015-03-17T22:56:12Z","body":"  [Test build #28738 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28738/consoleFull) for   PR 5059 at commit [`04c443c`](https://github.com/apache/spark/commit/04c443cc039814d0e1f2ab2ec636ad00256d63fc).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}