{"action":"closed","number":280,"pull_request":{"url":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280","id":42887913,"html_url":"https://github.com/postgres-x2/postgres-x2/pull/280","diff_url":"https://github.com/postgres-x2/postgres-x2/pull/280.diff","patch_url":"https://github.com/postgres-x2/postgres-x2/pull/280.patch","issue_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/280","number":280,"state":"closed","locked":false,"title":"ticket  for issue 77","user":{"login":"scarbrofair","id":6965925,"avatar_url":"https://avatars.githubusercontent.com/u/6965925?v=3","gravatar_id":"","url":"https://api.github.com/users/scarbrofair","html_url":"https://github.com/scarbrofair","followers_url":"https://api.github.com/users/scarbrofair/followers","following_url":"https://api.github.com/users/scarbrofair/following{/other_user}","gists_url":"https://api.github.com/users/scarbrofair/gists{/gist_id}","starred_url":"https://api.github.com/users/scarbrofair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarbrofair/subscriptions","organizations_url":"https://api.github.com/users/scarbrofair/orgs","repos_url":"https://api.github.com/users/scarbrofair/repos","events_url":"https://api.github.com/users/scarbrofair/events{/privacy}","received_events_url":"https://api.github.com/users/scarbrofair/received_events","type":"User","site_admin":false},"body":"For this issue, the planner will fail to find equijoin conditions against the distributed columns ( in pgxc_find_dist_equijoin_qual function of src/backend/optimizer/util/pgxcship.c), so planner find the join can not be shipped to datanodes .\r\nIn pgxc_find_dist_equijoin_qual function, it will check the element in the quals list as following: if the element is OpExpr and with 2 args and both arg are Var  and the args are the distributed columns and  the arg type is same and is joinable, it will return this element as the equijoin condition. If does not find, return NULL.\r\nHowever, for this issue, the quals list has just one element: A.id = B.id, it is OpExr and with 2 args, but the args are not Var but RelableType, so it fails.\r\nWe need the take into account this, since in order to cast data, pg will make  RelableType for Var when transform parse tree to Query.","created_at":"2015-08-20T03:24:51Z","updated_at":"2015-08-20T07:29:26Z","closed_at":"2015-08-20T07:29:26Z","merged_at":null,"merge_commit_sha":"66e6bd5a0e3decf38216d6c2bf770913c0c9fb66","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280/commits","review_comments_url":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280/comments","review_comment_url":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/280/comments","statuses_url":"https://api.github.com/repos/postgres-x2/postgres-x2/statuses/c25a325f4eb29544df7a4b3ce420d5404311dda3","head":{"label":"scarbrofair:77","ref":"77","sha":"c25a325f4eb29544df7a4b3ce420d5404311dda3","user":{"login":"scarbrofair","id":6965925,"avatar_url":"https://avatars.githubusercontent.com/u/6965925?v=3","gravatar_id":"","url":"https://api.github.com/users/scarbrofair","html_url":"https://github.com/scarbrofair","followers_url":"https://api.github.com/users/scarbrofair/followers","following_url":"https://api.github.com/users/scarbrofair/following{/other_user}","gists_url":"https://api.github.com/users/scarbrofair/gists{/gist_id}","starred_url":"https://api.github.com/users/scarbrofair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarbrofair/subscriptions","organizations_url":"https://api.github.com/users/scarbrofair/orgs","repos_url":"https://api.github.com/users/scarbrofair/repos","events_url":"https://api.github.com/users/scarbrofair/events{/privacy}","received_events_url":"https://api.github.com/users/scarbrofair/received_events","type":"User","site_admin":false},"repo":{"id":40588758,"name":"postgres-x2","full_name":"scarbrofair/postgres-x2","owner":{"login":"scarbrofair","id":6965925,"avatar_url":"https://avatars.githubusercontent.com/u/6965925?v=3","gravatar_id":"","url":"https://api.github.com/users/scarbrofair","html_url":"https://github.com/scarbrofair","followers_url":"https://api.github.com/users/scarbrofair/followers","following_url":"https://api.github.com/users/scarbrofair/following{/other_user}","gists_url":"https://api.github.com/users/scarbrofair/gists{/gist_id}","starred_url":"https://api.github.com/users/scarbrofair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarbrofair/subscriptions","organizations_url":"https://api.github.com/users/scarbrofair/orgs","repos_url":"https://api.github.com/users/scarbrofair/repos","events_url":"https://api.github.com/users/scarbrofair/events{/privacy}","received_events_url":"https://api.github.com/users/scarbrofair/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scarbrofair/postgres-x2","description":"Master Postgres-XC source repository","fork":true,"url":"https://api.github.com/repos/scarbrofair/postgres-x2","forks_url":"https://api.github.com/repos/scarbrofair/postgres-x2/forks","keys_url":"https://api.github.com/repos/scarbrofair/postgres-x2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scarbrofair/postgres-x2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scarbrofair/postgres-x2/teams","hooks_url":"https://api.github.com/repos/scarbrofair/postgres-x2/hooks","issue_events_url":"https://api.github.com/repos/scarbrofair/postgres-x2/issues/events{/number}","events_url":"https://api.github.com/repos/scarbrofair/postgres-x2/events","assignees_url":"https://api.github.com/repos/scarbrofair/postgres-x2/assignees{/user}","branches_url":"https://api.github.com/repos/scarbrofair/postgres-x2/branches{/branch}","tags_url":"https://api.github.com/repos/scarbrofair/postgres-x2/tags","blobs_url":"https://api.github.com/repos/scarbrofair/postgres-x2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scarbrofair/postgres-x2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scarbrofair/postgres-x2/git/refs{/sha}","trees_url":"https://api.github.com/repos/scarbrofair/postgres-x2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scarbrofair/postgres-x2/statuses/{sha}","languages_url":"https://api.github.com/repos/scarbrofair/postgres-x2/languages","stargazers_url":"https://api.github.com/repos/scarbrofair/postgres-x2/stargazers","contributors_url":"https://api.github.com/repos/scarbrofair/postgres-x2/contributors","subscribers_url":"https://api.github.com/repos/scarbrofair/postgres-x2/subscribers","subscription_url":"https://api.github.com/repos/scarbrofair/postgres-x2/subscription","commits_url":"https://api.github.com/repos/scarbrofair/postgres-x2/commits{/sha}","git_commits_url":"https://api.github.com/repos/scarbrofair/postgres-x2/git/commits{/sha}","comments_url":"https://api.github.com/repos/scarbrofair/postgres-x2/comments{/number}","issue_comment_url":"https://api.github.com/repos/scarbrofair/postgres-x2/issues/comments{/number}","contents_url":"https://api.github.com/repos/scarbrofair/postgres-x2/contents/{+path}","compare_url":"https://api.github.com/repos/scarbrofair/postgres-x2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scarbrofair/postgres-x2/merges","archive_url":"https://api.github.com/repos/scarbrofair/postgres-x2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scarbrofair/postgres-x2/downloads","issues_url":"https://api.github.com/repos/scarbrofair/postgres-x2/issues{/number}","pulls_url":"https://api.github.com/repos/scarbrofair/postgres-x2/pulls{/number}","milestones_url":"https://api.github.com/repos/scarbrofair/postgres-x2/milestones{/number}","notifications_url":"https://api.github.com/repos/scarbrofair/postgres-x2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scarbrofair/postgres-x2/labels{/name}","releases_url":"https://api.github.com/repos/scarbrofair/postgres-x2/releases{/id}","created_at":"2015-08-12T08:18:18Z","updated_at":"2015-08-12T08:18:47Z","pushed_at":"2015-08-20T02:56:31Z","git_url":"git://github.com/scarbrofair/postgres-x2.git","ssh_url":"git@github.com:scarbrofair/postgres-x2.git","clone_url":"https://github.com/scarbrofair/postgres-x2.git","svn_url":"https://github.com/scarbrofair/postgres-x2","homepage":null,"size":152418,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"postgres-x2:master","ref":"master","sha":"61bfb57398e4629efe059c9df17e3d6df5be118b","user":{"login":"postgres-x2","id":985333,"avatar_url":"https://avatars.githubusercontent.com/u/985333?v=3","gravatar_id":"","url":"https://api.github.com/users/postgres-x2","html_url":"https://github.com/postgres-x2","followers_url":"https://api.github.com/users/postgres-x2/followers","following_url":"https://api.github.com/users/postgres-x2/following{/other_user}","gists_url":"https://api.github.com/users/postgres-x2/gists{/gist_id}","starred_url":"https://api.github.com/users/postgres-x2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postgres-x2/subscriptions","organizations_url":"https://api.github.com/users/postgres-x2/orgs","repos_url":"https://api.github.com/users/postgres-x2/repos","events_url":"https://api.github.com/users/postgres-x2/events{/privacy}","received_events_url":"https://api.github.com/users/postgres-x2/received_events","type":"Organization","site_admin":false},"repo":{"id":35197708,"name":"postgres-x2","full_name":"postgres-x2/postgres-x2","owner":{"login":"postgres-x2","id":985333,"avatar_url":"https://avatars.githubusercontent.com/u/985333?v=3","gravatar_id":"","url":"https://api.github.com/users/postgres-x2","html_url":"https://github.com/postgres-x2","followers_url":"https://api.github.com/users/postgres-x2/followers","following_url":"https://api.github.com/users/postgres-x2/following{/other_user}","gists_url":"https://api.github.com/users/postgres-x2/gists{/gist_id}","starred_url":"https://api.github.com/users/postgres-x2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postgres-x2/subscriptions","organizations_url":"https://api.github.com/users/postgres-x2/orgs","repos_url":"https://api.github.com/users/postgres-x2/repos","events_url":"https://api.github.com/users/postgres-x2/events{/privacy}","received_events_url":"https://api.github.com/users/postgres-x2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postgres-x2/postgres-x2","description":"Master Postgres-XC source repository","fork":false,"url":"https://api.github.com/repos/postgres-x2/postgres-x2","forks_url":"https://api.github.com/repos/postgres-x2/postgres-x2/forks","keys_url":"https://api.github.com/repos/postgres-x2/postgres-x2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postgres-x2/postgres-x2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postgres-x2/postgres-x2/teams","hooks_url":"https://api.github.com/repos/postgres-x2/postgres-x2/hooks","issue_events_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/events{/number}","events_url":"https://api.github.com/repos/postgres-x2/postgres-x2/events","assignees_url":"https://api.github.com/repos/postgres-x2/postgres-x2/assignees{/user}","branches_url":"https://api.github.com/repos/postgres-x2/postgres-x2/branches{/branch}","tags_url":"https://api.github.com/repos/postgres-x2/postgres-x2/tags","blobs_url":"https://api.github.com/repos/postgres-x2/postgres-x2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postgres-x2/postgres-x2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postgres-x2/postgres-x2/git/refs{/sha}","trees_url":"https://api.github.com/repos/postgres-x2/postgres-x2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postgres-x2/postgres-x2/statuses/{sha}","languages_url":"https://api.github.com/repos/postgres-x2/postgres-x2/languages","stargazers_url":"https://api.github.com/repos/postgres-x2/postgres-x2/stargazers","contributors_url":"https://api.github.com/repos/postgres-x2/postgres-x2/contributors","subscribers_url":"https://api.github.com/repos/postgres-x2/postgres-x2/subscribers","subscription_url":"https://api.github.com/repos/postgres-x2/postgres-x2/subscription","commits_url":"https://api.github.com/repos/postgres-x2/postgres-x2/commits{/sha}","git_commits_url":"https://api.github.com/repos/postgres-x2/postgres-x2/git/commits{/sha}","comments_url":"https://api.github.com/repos/postgres-x2/postgres-x2/comments{/number}","issue_comment_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/comments{/number}","contents_url":"https://api.github.com/repos/postgres-x2/postgres-x2/contents/{+path}","compare_url":"https://api.github.com/repos/postgres-x2/postgres-x2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postgres-x2/postgres-x2/merges","archive_url":"https://api.github.com/repos/postgres-x2/postgres-x2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postgres-x2/postgres-x2/downloads","issues_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues{/number}","pulls_url":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls{/number}","milestones_url":"https://api.github.com/repos/postgres-x2/postgres-x2/milestones{/number}","notifications_url":"https://api.github.com/repos/postgres-x2/postgres-x2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postgres-x2/postgres-x2/labels{/name}","releases_url":"https://api.github.com/repos/postgres-x2/postgres-x2/releases{/id}","created_at":"2015-05-07T03:57:41Z","updated_at":"2015-08-18T10:16:24Z","pushed_at":"2015-08-20T06:08:42Z","git_url":"git://github.com/postgres-x2/postgres-x2.git","ssh_url":"git@github.com:postgres-x2/postgres-x2.git","clone_url":"https://github.com/postgres-x2/postgres-x2.git","svn_url":"https://github.com/postgres-x2/postgres-x2","homepage":null,"size":153516,"stargazers_count":44,"watchers_count":44,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":184,"forks":25,"open_issues":184,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280"},"html":{"href":"https://github.com/postgres-x2/postgres-x2/pull/280"},"issue":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/280"},"comments":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/postgres-x2/postgres-x2/statuses/c25a325f4eb29544df7a4b3ce420d5404311dda3"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":6,"additions":18,"deletions":2,"changed_files":1}}