{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/38389890","id":38389890,"diff_hunk":"@@ -436,7 +436,8 @@ abstract class HadoopFsRelation private[sql](maybePartitionSpec: Option[Partitio\n           Try(fs.listStatus(qualified)).getOrElse(Array.empty)\n         }.filterNot { status =>\n           val name = status.getPath.getName\n-          name.toLowerCase == \"_temporary\" || name.startsWith(\".\")\n+          // Is it safe to replace \"_temporary\" to \"_\"?","path":"sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala","position":5,"original_position":5,"commit_id":"be5522d24a39da20fc8d08b13e15def8e9139cc3","original_commit_id":"be5522d24a39da20fc8d08b13e15def8e9139cc3","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"body":"No. We need to preserve files like Parquet summary files (`_metadata` and `_common_metadata`).","created_at":"2015-09-01T06:47:58Z","updated_at":"2015-09-01T06:47:58Z","html_url":"https://github.com/apache/spark/pull/8547#discussion_r38389890","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/8547","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/38389890"},"html":{"href":"https://github.com/apache/spark/pull/8547#discussion_r38389890"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/8547"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8547","id":43837804,"html_url":"https://github.com/apache/spark/pull/8547","diff_url":"https://github.com/apache/spark/pull/8547.diff","patch_url":"https://github.com/apache/spark/pull/8547.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/8547","number":8547,"state":"open","locked":false,"title":"[SPARK-10304][SQL]: throw error when the table directory is invalid","user":{"login":"zhzhan","id":4451616,"avatar_url":"https://avatars.githubusercontent.com/u/4451616?v=3","gravatar_id":"","url":"https://api.github.com/users/zhzhan","html_url":"https://github.com/zhzhan","followers_url":"https://api.github.com/users/zhzhan/followers","following_url":"https://api.github.com/users/zhzhan/following{/other_user}","gists_url":"https://api.github.com/users/zhzhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhzhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhzhan/subscriptions","organizations_url":"https://api.github.com/users/zhzhan/orgs","repos_url":"https://api.github.com/users/zhzhan/repos","events_url":"https://api.github.com/users/zhzhan/events{/privacy}","received_events_url":"https://api.github.com/users/zhzhan/received_events","type":"User","site_admin":false},"body":"Throw error if the directory of a table is invalid, validated by either all files in the directory are partitioned, or none of them are partitioned.\r\n\r\nThe consistency of detailed partition spec is validated by existing parsePartitionColumn.","created_at":"2015-09-01T05:08:18Z","updated_at":"2015-09-01T06:47:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f13a75782b8e4a9ad71a494ba6db1bb7a95e872d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/8547/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/8547/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/8547/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/be5522d24a39da20fc8d08b13e15def8e9139cc3","head":{"label":"zhzhan:SPARK-10304","ref":"SPARK-10304","sha":"be5522d24a39da20fc8d08b13e15def8e9139cc3","user":{"login":"zhzhan","id":4451616,"avatar_url":"https://avatars.githubusercontent.com/u/4451616?v=3","gravatar_id":"","url":"https://api.github.com/users/zhzhan","html_url":"https://github.com/zhzhan","followers_url":"https://api.github.com/users/zhzhan/followers","following_url":"https://api.github.com/users/zhzhan/following{/other_user}","gists_url":"https://api.github.com/users/zhzhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhzhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhzhan/subscriptions","organizations_url":"https://api.github.com/users/zhzhan/orgs","repos_url":"https://api.github.com/users/zhzhan/repos","events_url":"https://api.github.com/users/zhzhan/events{/privacy}","received_events_url":"https://api.github.com/users/zhzhan/received_events","type":"User","site_admin":false},"repo":{"id":22663923,"name":"spark","full_name":"zhzhan/spark","owner":{"login":"zhzhan","id":4451616,"avatar_url":"https://avatars.githubusercontent.com/u/4451616?v=3","gravatar_id":"","url":"https://api.github.com/users/zhzhan","html_url":"https://github.com/zhzhan","followers_url":"https://api.github.com/users/zhzhan/followers","following_url":"https://api.github.com/users/zhzhan/following{/other_user}","gists_url":"https://api.github.com/users/zhzhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhzhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhzhan/subscriptions","organizations_url":"https://api.github.com/users/zhzhan/orgs","repos_url":"https://api.github.com/users/zhzhan/repos","events_url":"https://api.github.com/users/zhzhan/events{/privacy}","received_events_url":"https://api.github.com/users/zhzhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhzhan/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/zhzhan/spark","forks_url":"https://api.github.com/repos/zhzhan/spark/forks","keys_url":"https://api.github.com/repos/zhzhan/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhzhan/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhzhan/spark/teams","hooks_url":"https://api.github.com/repos/zhzhan/spark/hooks","issue_events_url":"https://api.github.com/repos/zhzhan/spark/issues/events{/number}","events_url":"https://api.github.com/repos/zhzhan/spark/events","assignees_url":"https://api.github.com/repos/zhzhan/spark/assignees{/user}","branches_url":"https://api.github.com/repos/zhzhan/spark/branches{/branch}","tags_url":"https://api.github.com/repos/zhzhan/spark/tags","blobs_url":"https://api.github.com/repos/zhzhan/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhzhan/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhzhan/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhzhan/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhzhan/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/zhzhan/spark/languages","stargazers_url":"https://api.github.com/repos/zhzhan/spark/stargazers","contributors_url":"https://api.github.com/repos/zhzhan/spark/contributors","subscribers_url":"https://api.github.com/repos/zhzhan/spark/subscribers","subscription_url":"https://api.github.com/repos/zhzhan/spark/subscription","commits_url":"https://api.github.com/repos/zhzhan/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhzhan/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhzhan/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhzhan/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhzhan/spark/contents/{+path}","compare_url":"https://api.github.com/repos/zhzhan/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhzhan/spark/merges","archive_url":"https://api.github.com/repos/zhzhan/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhzhan/spark/downloads","issues_url":"https://api.github.com/repos/zhzhan/spark/issues{/number}","pulls_url":"https://api.github.com/repos/zhzhan/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/zhzhan/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/zhzhan/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhzhan/spark/labels{/name}","releases_url":"https://api.github.com/repos/zhzhan/spark/releases{/id}","created_at":"2014-08-06T00:18:00Z","updated_at":"2015-05-07T17:02:31Z","pushed_at":"2015-09-01T05:01:31Z","git_url":"git://github.com/zhzhan/spark.git","ssh_url":"git@github.com:zhzhan/spark.git","clone_url":"https://github.com/zhzhan/spark.git","svn_url":"https://github.com/zhzhan/spark","homepage":null,"size":117632,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"d65656c455d19b83c6412571873586b458aa355e","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-09-01T04:40:35Z","pushed_at":"2015-09-01T06:46:46Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1683161,"stargazers_count":5266,"watchers_count":5266,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4829,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":365,"forks":4829,"open_issues":365,"watchers":5266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/8547"},"html":{"href":"https://github.com/apache/spark/pull/8547"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/8547"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/8547/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/8547/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/8547/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/be5522d24a39da20fc8d08b13e15def8e9139cc3"}}}}