{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/32873185","id":32873185,"diff_hunk":"@@ -251,6 +251,11 @@ case class InsertIntoHiveTable(\n       }\n     }\n \n+    //remove temporary directories","path":"sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala","position":4,"original_position":4,"commit_id":"d28c5566065079c76bb76ca19cdcb3b17c19091b","original_commit_id":"d28c5566065079c76bb76ca19cdcb3b17c19091b","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"body":"space after `//`","created_at":"2015-06-19T22:00:46Z","updated_at":"2015-06-19T22:00:46Z","html_url":"https://github.com/apache/spark/pull/5834#discussion_r32873185","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/5834","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/32873185"},"html":{"href":"https://github.com/apache/spark/pull/5834#discussion_r32873185"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/5834"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5834","id":34528386,"html_url":"https://github.com/apache/spark/pull/5834","diff_url":"https://github.com/apache/spark/pull/5834.diff","patch_url":"https://github.com/apache/spark/pull/5834.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/5834","number":5834,"state":"open","locked":false,"title":"spark-7300 remove temporary directories after the file is inserted into hive table","user":{"login":"hseagle","id":4279550,"avatar_url":"https://avatars.githubusercontent.com/u/4279550?v=3","gravatar_id":"","url":"https://api.github.com/users/hseagle","html_url":"https://github.com/hseagle","followers_url":"https://api.github.com/users/hseagle/followers","following_url":"https://api.github.com/users/hseagle/following{/other_user}","gists_url":"https://api.github.com/users/hseagle/gists{/gist_id}","starred_url":"https://api.github.com/users/hseagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hseagle/subscriptions","organizations_url":"https://api.github.com/users/hseagle/orgs","repos_url":"https://api.github.com/users/hseagle/repos","events_url":"https://api.github.com/users/hseagle/events{/privacy}","received_events_url":"https://api.github.com/users/hseagle/received_events","type":"User","site_admin":false},"body":"While using the *insertInto* api provided in DataFrame, it'll finally call the _loadTable_ or _loadPartition_ provided by Hive. Those two APIs have one side effect. They will not delete the generated temporary directories automatically. \r\n\r\nIn order to release the burden of HDFS NameNode, such directories should be removed in the end.\r\n\r\nplease refer to [spark-7300](https://issues.apache.org/jira/browse/SPARK-7300)\r\n\r\n","created_at":"2015-05-01T09:16:18Z","updated_at":"2015-06-19T22:00:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab51ee0e446a2db3403344241e87943462ff3268","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/5834/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/5834/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/5834/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/d28c5566065079c76bb76ca19cdcb3b17c19091b","head":{"label":"hseagle:spark-7300","ref":"spark-7300","sha":"d28c5566065079c76bb76ca19cdcb3b17c19091b","user":{"login":"hseagle","id":4279550,"avatar_url":"https://avatars.githubusercontent.com/u/4279550?v=3","gravatar_id":"","url":"https://api.github.com/users/hseagle","html_url":"https://github.com/hseagle","followers_url":"https://api.github.com/users/hseagle/followers","following_url":"https://api.github.com/users/hseagle/following{/other_user}","gists_url":"https://api.github.com/users/hseagle/gists{/gist_id}","starred_url":"https://api.github.com/users/hseagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hseagle/subscriptions","organizations_url":"https://api.github.com/users/hseagle/orgs","repos_url":"https://api.github.com/users/hseagle/repos","events_url":"https://api.github.com/users/hseagle/events{/privacy}","received_events_url":"https://api.github.com/users/hseagle/received_events","type":"User","site_admin":false},"repo":{"id":31401448,"name":"spark","full_name":"hseagle/spark","owner":{"login":"hseagle","id":4279550,"avatar_url":"https://avatars.githubusercontent.com/u/4279550?v=3","gravatar_id":"","url":"https://api.github.com/users/hseagle","html_url":"https://github.com/hseagle","followers_url":"https://api.github.com/users/hseagle/followers","following_url":"https://api.github.com/users/hseagle/following{/other_user}","gists_url":"https://api.github.com/users/hseagle/gists{/gist_id}","starred_url":"https://api.github.com/users/hseagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hseagle/subscriptions","organizations_url":"https://api.github.com/users/hseagle/orgs","repos_url":"https://api.github.com/users/hseagle/repos","events_url":"https://api.github.com/users/hseagle/events{/privacy}","received_events_url":"https://api.github.com/users/hseagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hseagle/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/hseagle/spark","forks_url":"https://api.github.com/repos/hseagle/spark/forks","keys_url":"https://api.github.com/repos/hseagle/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hseagle/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hseagle/spark/teams","hooks_url":"https://api.github.com/repos/hseagle/spark/hooks","issue_events_url":"https://api.github.com/repos/hseagle/spark/issues/events{/number}","events_url":"https://api.github.com/repos/hseagle/spark/events","assignees_url":"https://api.github.com/repos/hseagle/spark/assignees{/user}","branches_url":"https://api.github.com/repos/hseagle/spark/branches{/branch}","tags_url":"https://api.github.com/repos/hseagle/spark/tags","blobs_url":"https://api.github.com/repos/hseagle/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hseagle/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hseagle/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/hseagle/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hseagle/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/hseagle/spark/languages","stargazers_url":"https://api.github.com/repos/hseagle/spark/stargazers","contributors_url":"https://api.github.com/repos/hseagle/spark/contributors","subscribers_url":"https://api.github.com/repos/hseagle/spark/subscribers","subscription_url":"https://api.github.com/repos/hseagle/spark/subscription","commits_url":"https://api.github.com/repos/hseagle/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/hseagle/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/hseagle/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/hseagle/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/hseagle/spark/contents/{+path}","compare_url":"https://api.github.com/repos/hseagle/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hseagle/spark/merges","archive_url":"https://api.github.com/repos/hseagle/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hseagle/spark/downloads","issues_url":"https://api.github.com/repos/hseagle/spark/issues{/number}","pulls_url":"https://api.github.com/repos/hseagle/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/hseagle/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/hseagle/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hseagle/spark/labels{/name}","releases_url":"https://api.github.com/repos/hseagle/spark/releases{/id}","created_at":"2015-02-27T03:18:40Z","updated_at":"2015-02-27T03:18:59Z","pushed_at":"2015-05-02T01:28:45Z","git_url":"git://github.com/hseagle/spark.git","ssh_url":"git@github.com:hseagle/spark.git","clone_url":"https://github.com/hseagle/spark.git","svn_url":"https://github.com/hseagle/spark","homepage":null,"size":101901,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"7fe0f3f2b46c61a5cc4af9166781624409fda8a4","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-06-19T21:12:56Z","pushed_at":"2015-06-19T21:58:11Z","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":1470905,"stargazers_count":4452,"watchers_count":4452,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3915,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":352,"forks":3915,"open_issues":352,"watchers":4452,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/5834"},"html":{"href":"https://github.com/apache/spark/pull/5834"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/5834"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/5834/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/5834/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/5834/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/d28c5566065079c76bb76ca19cdcb3b17c19091b"}}}}