{"action":"created","issue":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/1548","repository_url":"https://api.github.com/repos/greenplum-db/gpdb","labels_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/1548/labels{/name}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/1548/comments","events_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/1548/events","html_url":"https://github.com/greenplum-db/gpdb/pull/1548","id":200520462,"number":1548,"title":"Fix dispatch of pre-assigned OIDs in queries with initplans.","user":{"login":"hlinnaka","id":191602,"avatar_url":"https://avatars.githubusercontent.com/u/191602?v=3","gravatar_id":"","url":"https://api.github.com/users/hlinnaka","html_url":"https://github.com/hlinnaka","followers_url":"https://api.github.com/users/hlinnaka/followers","following_url":"https://api.github.com/users/hlinnaka/following{/other_user}","gists_url":"https://api.github.com/users/hlinnaka/gists{/gist_id}","starred_url":"https://api.github.com/users/hlinnaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlinnaka/subscriptions","organizations_url":"https://api.github.com/users/hlinnaka/orgs","repos_url":"https://api.github.com/users/hlinnaka/repos","events_url":"https://api.github.com/users/hlinnaka/events{/privacy}","received_events_url":"https://api.github.com/users/hlinnaka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-13T00:45:58Z","updated_at":"2017-01-13T05:49:27Z","closed_at":"2017-01-13T05:09:49Z","pull_request":{"url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/1548","html_url":"https://github.com/greenplum-db/gpdb/pull/1548","diff_url":"https://github.com/greenplum-db/gpdb/pull/1548.diff","patch_url":"https://github.com/greenplum-db/gpdb/pull/1548.patch"},"body":"If a CTAS query uses a query with an InitPlan, and the InitPlan contains\r\na call to a function that dispatches another query to the segments, the\r\nlist of Oids is dispatched to the segments prematurely, in the inner query.\r\nAs a result, when the CTAS query is dispatched, the OID of the new table\r\nis not included, and you get a \"no pre-assigned OID for relation\" error.\r\n\r\nTo fix, attach the OID of the new table to the query descriptor before\r\nexecuting the InitPlans.\r\n\r\nFixes github issue #1543, reported with test case by Abhijit Subramanya."},"comment":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/comments/272366707","html_url":"https://github.com/greenplum-db/gpdb/pull/1548#issuecomment-272366707","issue_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/1548","id":272366707,"user":{"login":"ashwinstar","id":11396815,"avatar_url":"https://avatars.githubusercontent.com/u/11396815?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwinstar","html_url":"https://github.com/ashwinstar","followers_url":"https://api.github.com/users/ashwinstar/followers","following_url":"https://api.github.com/users/ashwinstar/following{/other_user}","gists_url":"https://api.github.com/users/ashwinstar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwinstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwinstar/subscriptions","organizations_url":"https://api.github.com/users/ashwinstar/orgs","repos_url":"https://api.github.com/users/ashwinstar/repos","events_url":"https://api.github.com/users/ashwinstar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwinstar/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T05:49:27Z","updated_at":"2017-01-13T05:49:27Z","body":"Wowww that was fast, without any +1's  :-) LGTM."}}
{"actor":{"display_login":"ashwinstar"}}