{"action":"closed","number":1374,"pull_request":{"url":"https://api.github.com/repos/apache/calcite/pulls/1374","id":306977965,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA2OTc3OTY1","html_url":"https://github.com/apache/calcite/pull/1374","diff_url":"https://github.com/apache/calcite/pull/1374.diff","patch_url":"https://github.com/apache/calcite/pull/1374.patch","issue_url":"https://api.github.com/repos/apache/calcite/issues/1374","number":1374,"state":"closed","locked":false,"title":"[CALCITE-3138] RelStructuredTypeFlattener doesn't restructure ROW type fields","user":{"login":"ihuzenko","id":4282630,"node_id":"MDQ6VXNlcjQyODI2MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4282630?v=4","gravatar_id":"","url":"https://api.github.com/users/ihuzenko","html_url":"https://github.com/ihuzenko","followers_url":"https://api.github.com/users/ihuzenko/followers","following_url":"https://api.github.com/users/ihuzenko/following{/other_user}","gists_url":"https://api.github.com/users/ihuzenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ihuzenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihuzenko/subscriptions","organizations_url":"https://api.github.com/users/ihuzenko/orgs","repos_url":"https://api.github.com/users/ihuzenko/repos","events_url":"https://api.github.com/users/ihuzenko/events{/privacy}","received_events_url":"https://api.github.com/users/ihuzenko/received_events","type":"User","site_admin":false},"body":"PR for [CALCITE-3138](https://issues.apache.org/jira/browse/CALCITE-3138). \r\n\r\n- Fixed restructuring of ROW type\r\n- Removed null indicator because there are cases when it's impossible to track correct new indices using getNewForOldInput(...) method\r\n- Increased depth of flattening for ITEM(...) which gets struct from array by index and the returned struct contains another struct \r\n- Some ITEM(struct, 'fieldName') expressions are replaced by simple refs after flatten operation\r\n- Added ROW support to SqlItemOperator type inference \r\n- Increased amount of local variables to simplify debugging \r\n- Updated tests expected results\r\n- Added check to avoid merging of flatten and restructuring projects","created_at":"2019-08-13T16:11:13Z","updated_at":"2019-08-21T18:24:51Z","closed_at":"2019-08-21T18:24:51Z","merged_at":null,"merge_commit_sha":"5badcba2cb61cd625fb062361e5a0c9b33c46098","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1183355300,"node_id":"MDU6TGFiZWwxMTgzMzU1MzAw","url":"https://api.github.com/repos/apache/calcite/labels/LGTM-will-merge-soon","name":"LGTM-will-merge-soon","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/calcite/pulls/1374/commits","review_comments_url":"https://api.github.com/repos/apache/calcite/pulls/1374/comments","review_comment_url":"https://api.github.com/repos/apache/calcite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/calcite/issues/1374/comments","statuses_url":"https://api.github.com/repos/apache/calcite/statuses/1b09c61709e0fd67269d6664ccce0726e1962603","head":{"label":"ihuzenko:CALCITE-3138","ref":"CALCITE-3138","sha":"1b09c61709e0fd67269d6664ccce0726e1962603","user":{"login":"ihuzenko","id":4282630,"node_id":"MDQ6VXNlcjQyODI2MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4282630?v=4","gravatar_id":"","url":"https://api.github.com/users/ihuzenko","html_url":"https://github.com/ihuzenko","followers_url":"https://api.github.com/users/ihuzenko/followers","following_url":"https://api.github.com/users/ihuzenko/following{/other_user}","gists_url":"https://api.github.com/users/ihuzenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ihuzenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihuzenko/subscriptions","organizations_url":"https://api.github.com/users/ihuzenko/orgs","repos_url":"https://api.github.com/users/ihuzenko/repos","events_url":"https://api.github.com/users/ihuzenko/events{/privacy}","received_events_url":"https://api.github.com/users/ihuzenko/received_events","type":"User","site_admin":false},"repo":{"id":153271423,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNzE0MjM=","name":"calcite","full_name":"ihuzenko/calcite","private":false,"owner":{"login":"ihuzenko","id":4282630,"node_id":"MDQ6VXNlcjQyODI2MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4282630?v=4","gravatar_id":"","url":"https://api.github.com/users/ihuzenko","html_url":"https://github.com/ihuzenko","followers_url":"https://api.github.com/users/ihuzenko/followers","following_url":"https://api.github.com/users/ihuzenko/following{/other_user}","gists_url":"https://api.github.com/users/ihuzenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ihuzenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihuzenko/subscriptions","organizations_url":"https://api.github.com/users/ihuzenko/orgs","repos_url":"https://api.github.com/users/ihuzenko/repos","events_url":"https://api.github.com/users/ihuzenko/events{/privacy}","received_events_url":"https://api.github.com/users/ihuzenko/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ihuzenko/calcite","description":"Mirror of Apache Calcite","fork":true,"url":"https://api.github.com/repos/ihuzenko/calcite","forks_url":"https://api.github.com/repos/ihuzenko/calcite/forks","keys_url":"https://api.github.com/repos/ihuzenko/calcite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihuzenko/calcite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihuzenko/calcite/teams","hooks_url":"https://api.github.com/repos/ihuzenko/calcite/hooks","issue_events_url":"https://api.github.com/repos/ihuzenko/calcite/issues/events{/number}","events_url":"https://api.github.com/repos/ihuzenko/calcite/events","assignees_url":"https://api.github.com/repos/ihuzenko/calcite/assignees{/user}","branches_url":"https://api.github.com/repos/ihuzenko/calcite/branches{/branch}","tags_url":"https://api.github.com/repos/ihuzenko/calcite/tags","blobs_url":"https://api.github.com/repos/ihuzenko/calcite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihuzenko/calcite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihuzenko/calcite/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihuzenko/calcite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihuzenko/calcite/statuses/{sha}","languages_url":"https://api.github.com/repos/ihuzenko/calcite/languages","stargazers_url":"https://api.github.com/repos/ihuzenko/calcite/stargazers","contributors_url":"https://api.github.com/repos/ihuzenko/calcite/contributors","subscribers_url":"https://api.github.com/repos/ihuzenko/calcite/subscribers","subscription_url":"https://api.github.com/repos/ihuzenko/calcite/subscription","commits_url":"https://api.github.com/repos/ihuzenko/calcite/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihuzenko/calcite/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihuzenko/calcite/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihuzenko/calcite/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihuzenko/calcite/contents/{+path}","compare_url":"https://api.github.com/repos/ihuzenko/calcite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihuzenko/calcite/merges","archive_url":"https://api.github.com/repos/ihuzenko/calcite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihuzenko/calcite/downloads","issues_url":"https://api.github.com/repos/ihuzenko/calcite/issues{/number}","pulls_url":"https://api.github.com/repos/ihuzenko/calcite/pulls{/number}","milestones_url":"https://api.github.com/repos/ihuzenko/calcite/milestones{/number}","notifications_url":"https://api.github.com/repos/ihuzenko/calcite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihuzenko/calcite/labels{/name}","releases_url":"https://api.github.com/repos/ihuzenko/calcite/releases{/id}","deployments_url":"https://api.github.com/repos/ihuzenko/calcite/deployments","created_at":"2018-10-16T11:03:32Z","updated_at":"2019-08-21T11:42:15Z","pushed_at":"2019-08-21T15:26:43Z","git_url":"git://github.com/ihuzenko/calcite.git","ssh_url":"git@github.com:ihuzenko/calcite.git","clone_url":"https://github.com/ihuzenko/calcite.git","svn_url":"https://github.com/ihuzenko/calcite","homepage":"","size":51411,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"5a42812832e51a7551a793ac75160188e06668e6","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","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":21193524,"node_id":"MDEwOlJlcG9zaXRvcnkyMTE5MzUyNA==","name":"calcite","full_name":"apache/calcite","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","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},"html_url":"https://github.com/apache/calcite","description":"Mirror of Apache Calcite","fork":false,"url":"https://api.github.com/repos/apache/calcite","forks_url":"https://api.github.com/repos/apache/calcite/forks","keys_url":"https://api.github.com/repos/apache/calcite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/calcite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/calcite/teams","hooks_url":"https://api.github.com/repos/apache/calcite/hooks","issue_events_url":"https://api.github.com/repos/apache/calcite/issues/events{/number}","events_url":"https://api.github.com/repos/apache/calcite/events","assignees_url":"https://api.github.com/repos/apache/calcite/assignees{/user}","branches_url":"https://api.github.com/repos/apache/calcite/branches{/branch}","tags_url":"https://api.github.com/repos/apache/calcite/tags","blobs_url":"https://api.github.com/repos/apache/calcite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/calcite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/calcite/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/calcite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/calcite/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/calcite/languages","stargazers_url":"https://api.github.com/repos/apache/calcite/stargazers","contributors_url":"https://api.github.com/repos/apache/calcite/contributors","subscribers_url":"https://api.github.com/repos/apache/calcite/subscribers","subscription_url":"https://api.github.com/repos/apache/calcite/subscription","commits_url":"https://api.github.com/repos/apache/calcite/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/calcite/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/calcite/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/calcite/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/calcite/contents/{+path}","compare_url":"https://api.github.com/repos/apache/calcite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/calcite/merges","archive_url":"https://api.github.com/repos/apache/calcite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/calcite/downloads","issues_url":"https://api.github.com/repos/apache/calcite/issues{/number}","pulls_url":"https://api.github.com/repos/apache/calcite/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/calcite/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/calcite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/calcite/labels{/name}","releases_url":"https://api.github.com/repos/apache/calcite/releases{/id}","deployments_url":"https://api.github.com/repos/apache/calcite/deployments","created_at":"2014-06-25T07:00:07Z","updated_at":"2019-08-21T17:36:34Z","pushed_at":"2019-08-21T18:24:50Z","git_url":"git://github.com/apache/calcite.git","ssh_url":"git@github.com:apache/calcite.git","clone_url":"https://github.com/apache/calcite.git","svn_url":"https://github.com/apache/calcite","homepage":"","size":51904,"stargazers_count":1356,"watchers_count":1356,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":895,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":110,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":895,"open_issues":110,"watchers":1356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/calcite/pulls/1374"},"html":{"href":"https://github.com/apache/calcite/pull/1374"},"issue":{"href":"https://api.github.com/repos/apache/calcite/issues/1374"},"comments":{"href":"https://api.github.com/repos/apache/calcite/issues/1374/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/calcite/pulls/1374/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/calcite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/calcite/pulls/1374/commits"},"statuses":{"href":"https://api.github.com/repos/apache/calcite/statuses/1b09c61709e0fd67269d6664ccce0726e1962603"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":7,"review_comments":36,"maintainer_can_modify":false,"commits":1,"additions":456,"deletions":272,"changed_files":8}}
{"actor":{"display_login":"asfgit"}}