{"action":"opened","number":350,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350","id":186061923,"html_url":"https://github.com/apache/incubator-quickstep/pull/350","diff_url":"https://github.com/apache/incubator-quickstep/pull/350.diff","patch_url":"https://github.com/apache/incubator-quickstep/pull/350.patch","issue_url":"https://api.github.com/repos/apache/incubator-quickstep/issues/350","number":350,"state":"open","locked":false,"title":"Fixed the bug regarding EliminateEmptyNode and InsertSelection.","user":{"login":"zuyu","id":2245572,"avatar_url":"https://avatars0.githubusercontent.com/u/2245572?v=4","gravatar_id":"","url":"https://api.github.com/users/zuyu","html_url":"https://github.com/zuyu","followers_url":"https://api.github.com/users/zuyu/followers","following_url":"https://api.github.com/users/zuyu/following{/other_user}","gists_url":"https://api.github.com/users/zuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuyu/subscriptions","organizations_url":"https://api.github.com/users/zuyu/orgs","repos_url":"https://api.github.com/users/zuyu/repos","events_url":"https://api.github.com/users/zuyu/events{/privacy}","received_events_url":"https://api.github.com/users/zuyu/received_events","type":"User","site_admin":false},"body":"This PR fixed a bug regarding `EliminateEmptyNode` and `InsertSelection` that could be easily reproduced as the following:\r\n```\r\nCREATE TABLE temp (a int);\r\n\\analyze\r\nINSERT INTO temp SELECT i FROM generate_series(1, 100) AS gs(i);\r\n```\r\n\r\nThe problem is that `InsertSelection` allows the destination table to be empty, but the rule does not catch that.","created_at":"2018-05-04T18:09:41Z","updated_at":"2018-05-04T18:09:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-quickstep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-quickstep/issues/350/comments","statuses_url":"https://api.github.com/repos/apache/incubator-quickstep/statuses/77287a78890284139273dd5344e7d9b141f7ee25","head":{"label":"zuyu:elimination-rule-bug-fix","ref":"elimination-rule-bug-fix","sha":"77287a78890284139273dd5344e7d9b141f7ee25","user":{"login":"zuyu","id":2245572,"avatar_url":"https://avatars0.githubusercontent.com/u/2245572?v=4","gravatar_id":"","url":"https://api.github.com/users/zuyu","html_url":"https://github.com/zuyu","followers_url":"https://api.github.com/users/zuyu/followers","following_url":"https://api.github.com/users/zuyu/following{/other_user}","gists_url":"https://api.github.com/users/zuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuyu/subscriptions","organizations_url":"https://api.github.com/users/zuyu/orgs","repos_url":"https://api.github.com/users/zuyu/repos","events_url":"https://api.github.com/users/zuyu/events{/privacy}","received_events_url":"https://api.github.com/users/zuyu/received_events","type":"User","site_admin":false},"repo":{"id":84873745,"name":"incubator-quickstep","full_name":"zuyu/incubator-quickstep","owner":{"login":"zuyu","id":2245572,"avatar_url":"https://avatars0.githubusercontent.com/u/2245572?v=4","gravatar_id":"","url":"https://api.github.com/users/zuyu","html_url":"https://github.com/zuyu","followers_url":"https://api.github.com/users/zuyu/followers","following_url":"https://api.github.com/users/zuyu/following{/other_user}","gists_url":"https://api.github.com/users/zuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuyu/subscriptions","organizations_url":"https://api.github.com/users/zuyu/orgs","repos_url":"https://api.github.com/users/zuyu/repos","events_url":"https://api.github.com/users/zuyu/events{/privacy}","received_events_url":"https://api.github.com/users/zuyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zuyu/incubator-quickstep","description":"Mirror of Apache Quickstep Incubator","fork":true,"url":"https://api.github.com/repos/zuyu/incubator-quickstep","forks_url":"https://api.github.com/repos/zuyu/incubator-quickstep/forks","keys_url":"https://api.github.com/repos/zuyu/incubator-quickstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuyu/incubator-quickstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuyu/incubator-quickstep/teams","hooks_url":"https://api.github.com/repos/zuyu/incubator-quickstep/hooks","issue_events_url":"https://api.github.com/repos/zuyu/incubator-quickstep/issues/events{/number}","events_url":"https://api.github.com/repos/zuyu/incubator-quickstep/events","assignees_url":"https://api.github.com/repos/zuyu/incubator-quickstep/assignees{/user}","branches_url":"https://api.github.com/repos/zuyu/incubator-quickstep/branches{/branch}","tags_url":"https://api.github.com/repos/zuyu/incubator-quickstep/tags","blobs_url":"https://api.github.com/repos/zuyu/incubator-quickstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuyu/incubator-quickstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuyu/incubator-quickstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuyu/incubator-quickstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuyu/incubator-quickstep/statuses/{sha}","languages_url":"https://api.github.com/repos/zuyu/incubator-quickstep/languages","stargazers_url":"https://api.github.com/repos/zuyu/incubator-quickstep/stargazers","contributors_url":"https://api.github.com/repos/zuyu/incubator-quickstep/contributors","subscribers_url":"https://api.github.com/repos/zuyu/incubator-quickstep/subscribers","subscription_url":"https://api.github.com/repos/zuyu/incubator-quickstep/subscription","commits_url":"https://api.github.com/repos/zuyu/incubator-quickstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuyu/incubator-quickstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuyu/incubator-quickstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuyu/incubator-quickstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuyu/incubator-quickstep/contents/{+path}","compare_url":"https://api.github.com/repos/zuyu/incubator-quickstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuyu/incubator-quickstep/merges","archive_url":"https://api.github.com/repos/zuyu/incubator-quickstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuyu/incubator-quickstep/downloads","issues_url":"https://api.github.com/repos/zuyu/incubator-quickstep/issues{/number}","pulls_url":"https://api.github.com/repos/zuyu/incubator-quickstep/pulls{/number}","milestones_url":"https://api.github.com/repos/zuyu/incubator-quickstep/milestones{/number}","notifications_url":"https://api.github.com/repos/zuyu/incubator-quickstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuyu/incubator-quickstep/labels{/name}","releases_url":"https://api.github.com/repos/zuyu/incubator-quickstep/releases{/id}","deployments_url":"https://api.github.com/repos/zuyu/incubator-quickstep/deployments","created_at":"2017-03-13T20:55:25Z","updated_at":"2018-05-04T03:17:42Z","pushed_at":"2018-05-04T18:04:10Z","git_url":"git://github.com/zuyu/incubator-quickstep.git","ssh_url":"git@github.com:zuyu/incubator-quickstep.git","clone_url":"https://github.com/zuyu/incubator-quickstep.git","svn_url":"https://github.com/zuyu/incubator-quickstep","homepage":null,"size":11942,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"876f12ba587eed7b8cf7f2b3f7d45affc885e1ac","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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":56214719,"name":"incubator-quickstep","full_name":"apache/incubator-quickstep","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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-quickstep","description":"Mirror of Apache Quickstep Incubator","fork":false,"url":"https://api.github.com/repos/apache/incubator-quickstep","forks_url":"https://api.github.com/repos/apache/incubator-quickstep/forks","keys_url":"https://api.github.com/repos/apache/incubator-quickstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-quickstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-quickstep/teams","hooks_url":"https://api.github.com/repos/apache/incubator-quickstep/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-quickstep/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-quickstep/events","assignees_url":"https://api.github.com/repos/apache/incubator-quickstep/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-quickstep/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-quickstep/tags","blobs_url":"https://api.github.com/repos/apache/incubator-quickstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-quickstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-quickstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-quickstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-quickstep/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-quickstep/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-quickstep/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-quickstep/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-quickstep/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-quickstep/subscription","commits_url":"https://api.github.com/repos/apache/incubator-quickstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-quickstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-quickstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-quickstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-quickstep/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-quickstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-quickstep/merges","archive_url":"https://api.github.com/repos/apache/incubator-quickstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-quickstep/downloads","issues_url":"https://api.github.com/repos/apache/incubator-quickstep/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-quickstep/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-quickstep/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-quickstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-quickstep/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-quickstep/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-quickstep/deployments","created_at":"2016-04-14T07:00:07Z","updated_at":"2018-05-04T03:06:49Z","pushed_at":"2018-05-04T03:18:53Z","git_url":"git://github.com/apache/incubator-quickstep.git","ssh_url":"git@github.com:apache/incubator-quickstep.git","clone_url":"https://github.com/apache/incubator-quickstep.git","svn_url":"https://github.com/apache/incubator-quickstep","homepage":null,"size":11843,"stargazers_count":60,"watchers_count":60,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":43,"open_issues":5,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350"},"html":{"href":"https://github.com/apache/incubator-quickstep/pull/350"},"issue":{"href":"https://api.github.com/repos/apache/incubator-quickstep/issues/350"},"comments":{"href":"https://api.github.com/repos/apache/incubator-quickstep/issues/350/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-quickstep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-quickstep/pulls/350/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-quickstep/statuses/77287a78890284139273dd5344e7d9b141f7ee25"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":18,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"zuyu"}}