{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/80168324","id":80168324,"diff_hunk":"@@ -469,8 +481,8 @@ class HawqRegister(object):\n             self.filepath = self.files[0][:self.files[0].rfind('/')] if self.files else ''\n             check_file_not_folder()\n             check_database_encoding()\n-            if self.mode != 'force' and self.mode != 'repair':\n-                if not create_table():\n+            if self.mode != 'repair':\n+                if not create_table() and self.mode != 'force':","path":"tools/bin/hawqregister","position":51,"original_position":51,"commit_id":"ae39b4dcee7f83ffc0b56163aebed0fe08b0eaf5","original_commit_id":"ae39b4dcee7f83ffc0b56163aebed0fe08b0eaf5","user":{"login":"zhangh43","id":10432876,"avatar_url":"https://avatars.githubusercontent.com/u/10432876?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangh43","html_url":"https://github.com/zhangh43","followers_url":"https://api.github.com/users/zhangh43/followers","following_url":"https://api.github.com/users/zhangh43/following{/other_user}","gists_url":"https://api.github.com/users/zhangh43/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangh43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangh43/subscriptions","organizations_url":"https://api.github.com/users/zhangh43/orgs","repos_url":"https://api.github.com/users/zhangh43/repos","events_url":"https://api.github.com/users/zhangh43/events{/privacy}","received_events_url":"https://api.github.com/users/zhangh43/received_events","type":"User","site_admin":false},"body":"Since table is created by create_table()\r\nI think there is no need to self.mode='usage2_table_non_exist' instead of 'force'","created_at":"2016-09-23T01:26:34Z","updated_at":"2016-09-23T01:26:34Z","html_url":"https://github.com/apache/incubator-hawq/pull/929#discussion_r80168324","pull_request_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/929","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/80168324"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/929#discussion_r80168324"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/929"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/929","id":86336674,"html_url":"https://github.com/apache/incubator-hawq/pull/929","diff_url":"https://github.com/apache/incubator-hawq/pull/929.diff","patch_url":"https://github.com/apache/incubator-hawq/pull/929.patch","issue_url":"https://api.github.com/repos/apache/incubator-hawq/issues/929","number":929,"state":"open","locked":false,"title":"HAWQ-1033. Fix bug in hawq register --force.","user":{"login":"zhangh43","id":10432876,"avatar_url":"https://avatars.githubusercontent.com/u/10432876?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangh43","html_url":"https://github.com/zhangh43","followers_url":"https://api.github.com/users/zhangh43/followers","following_url":"https://api.github.com/users/zhangh43/following{/other_user}","gists_url":"https://api.github.com/users/zhangh43/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangh43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangh43/subscriptions","organizations_url":"https://api.github.com/users/zhangh43/orgs","repos_url":"https://api.github.com/users/zhangh43/repos","events_url":"https://api.github.com/users/zhangh43/events{/privacy}","received_events_url":"https://api.github.com/users/zhangh43/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-22T13:25:48Z","updated_at":"2016-09-23T01:26:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09198709512d0b67f23c8229170fc3293f6fe2cc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/929/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/929/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/issues/929/comments","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/ae39b4dcee7f83ffc0b56163aebed0fe08b0eaf5","head":{"label":"zhangh43:hawq10331","ref":"hawq10331","sha":"ae39b4dcee7f83ffc0b56163aebed0fe08b0eaf5","user":{"login":"zhangh43","id":10432876,"avatar_url":"https://avatars.githubusercontent.com/u/10432876?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangh43","html_url":"https://github.com/zhangh43","followers_url":"https://api.github.com/users/zhangh43/followers","following_url":"https://api.github.com/users/zhangh43/following{/other_user}","gists_url":"https://api.github.com/users/zhangh43/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangh43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangh43/subscriptions","organizations_url":"https://api.github.com/users/zhangh43/orgs","repos_url":"https://api.github.com/users/zhangh43/repos","events_url":"https://api.github.com/users/zhangh43/events{/privacy}","received_events_url":"https://api.github.com/users/zhangh43/received_events","type":"User","site_admin":false},"repo":{"id":43352391,"name":"incubator-hawq","full_name":"zhangh43/incubator-hawq","owner":{"login":"zhangh43","id":10432876,"avatar_url":"https://avatars.githubusercontent.com/u/10432876?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangh43","html_url":"https://github.com/zhangh43","followers_url":"https://api.github.com/users/zhangh43/followers","following_url":"https://api.github.com/users/zhangh43/following{/other_user}","gists_url":"https://api.github.com/users/zhangh43/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangh43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangh43/subscriptions","organizations_url":"https://api.github.com/users/zhangh43/orgs","repos_url":"https://api.github.com/users/zhangh43/repos","events_url":"https://api.github.com/users/zhangh43/events{/privacy}","received_events_url":"https://api.github.com/users/zhangh43/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhangh43/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":true,"url":"https://api.github.com/repos/zhangh43/incubator-hawq","forks_url":"https://api.github.com/repos/zhangh43/incubator-hawq/forks","keys_url":"https://api.github.com/repos/zhangh43/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhangh43/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhangh43/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/zhangh43/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/zhangh43/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/zhangh43/incubator-hawq/events","assignees_url":"https://api.github.com/repos/zhangh43/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/zhangh43/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/zhangh43/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/zhangh43/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhangh43/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhangh43/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhangh43/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhangh43/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/zhangh43/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/zhangh43/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/zhangh43/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/zhangh43/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/zhangh43/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/zhangh43/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhangh43/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhangh43/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhangh43/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhangh43/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/zhangh43/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhangh43/incubator-hawq/merges","archive_url":"https://api.github.com/repos/zhangh43/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhangh43/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/zhangh43/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/zhangh43/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/zhangh43/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/zhangh43/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhangh43/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/zhangh43/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/zhangh43/incubator-hawq/deployments","created_at":"2015-09-29T07:40:38Z","updated_at":"2015-09-29T07:41:08Z","pushed_at":"2016-09-23T00:28:35Z","git_url":"git://github.com/zhangh43/incubator-hawq.git","ssh_url":"git@github.com:zhangh43/incubator-hawq.git","clone_url":"https://github.com/zhangh43/incubator-hawq.git","svn_url":"https://github.com/zhangh43/incubator-hawq","homepage":null,"size":64886,"stargazers_count":0,"watchers_count":0,"language":"C","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":"dc12e94b43bddb2a9c71189efe284bb81d81afd3","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":41952293,"name":"incubator-hawq","full_name":"apache/incubator-hawq","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/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq","forks_url":"https://api.github.com/repos/apache/incubator-hawq/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-hawq/deployments","created_at":"2015-09-05T07:00:05Z","updated_at":"2016-09-21T08:54:09Z","pushed_at":"2016-09-23T00:28:35Z","git_url":"git://github.com/apache/incubator-hawq.git","ssh_url":"git@github.com:apache/incubator-hawq.git","clone_url":"https://github.com/apache/incubator-hawq.git","svn_url":"https://github.com/apache/incubator-hawq","homepage":null,"size":176672,"stargazers_count":199,"watchers_count":199,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":142,"mirror_url":"git://git.apache.org/incubator-hawq.git","open_issues_count":22,"forks":142,"open_issues":22,"watchers":199,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/929"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/929"},"issue":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/929"},"comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/929/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/929/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/929/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-hawq/statuses/ae39b4dcee7f83ffc0b56163aebed0fe08b0eaf5"}}}}
{"actor":{"display_login":"zhangh43"}}