{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/7595","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/7595/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/7595/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/7595/events","html_url":"https://github.com/pingcap/tidb/pull/7595","id":356491491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzM3NjQ1","number":7595,"title":"plan: maintain `HistColl` in `Selection` and `Projection`'s `statsInfo`.","user":{"login":"winoros","id":7846227,"node_id":"MDQ6VXNlcjc4NDYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7846227?v=4","gravatar_id":"","url":"https://api.github.com/users/winoros","html_url":"https://github.com/winoros","followers_url":"https://api.github.com/users/winoros/followers","following_url":"https://api.github.com/users/winoros/following{/other_user}","gists_url":"https://api.github.com/users/winoros/gists{/gist_id}","starred_url":"https://api.github.com/users/winoros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winoros/subscriptions","organizations_url":"https://api.github.com/users/winoros/orgs","repos_url":"https://api.github.com/users/winoros/repos","events_url":"https://api.github.com/users/winoros/events{/privacy}","received_events_url":"https://api.github.com/users/winoros/received_events","type":"User","site_admin":false},"labels":[{"id":667671533,"node_id":"MDU6TGFiZWw2Njc2NzE1MzM=","url":"https://api.github.com/repos/pingcap/tidb/labels/component/planner","name":"component/planner","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T12:44:33Z","updated_at":"2018-09-26T08:46:28Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/7595","html_url":"https://github.com/pingcap/tidb/pull/7595","diff_url":"https://github.com/pingcap/tidb/pull/7595.diff","patch_url":"https://github.com/pingcap/tidb/pull/7595.patch"},"body":"<!--\r\nThank you for contributing to TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.\r\n-->\r\n\r\n### What problem does this PR solve? <!--add issue link with summary if exists-->\r\n\r\nMaintain the `HistColl` in `Selection` and `Projection`.\r\n\r\nNote: Currently maintain it or not is controlled by `tidb_optimizer_selectivity_level`.\r\n\r\n### What is changed and how it works?\r\n\r\nFor selection it only needs to assign the `HistColl` of its child.(Currently we don't handle the bound value of the `Histogram`s)\r\n\r\nFor projection, build new map.\r\n\r\n### Check List <!--REMOVE the items that are not applicable-->\r\n\r\nTests <!-- At least one of them must be included. -->\r\n\r\n - Unit test\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/424636059","html_url":"https://github.com/pingcap/tidb/pull/7595#issuecomment-424636059","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/7595","id":424636059,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDYzNjA1OQ==","user":{"login":"winoros","id":7846227,"node_id":"MDQ6VXNlcjc4NDYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7846227?v=4","gravatar_id":"","url":"https://api.github.com/users/winoros","html_url":"https://github.com/winoros","followers_url":"https://api.github.com/users/winoros/followers","following_url":"https://api.github.com/users/winoros/following{/other_user}","gists_url":"https://api.github.com/users/winoros/gists{/gist_id}","starred_url":"https://api.github.com/users/winoros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winoros/subscriptions","organizations_url":"https://api.github.com/users/winoros/orgs","repos_url":"https://api.github.com/users/winoros/repos","events_url":"https://api.github.com/users/winoros/events{/privacy}","received_events_url":"https://api.github.com/users/winoros/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T08:46:28Z","updated_at":"2018-09-26T08:46:28Z","author_association":"MEMBER","body":"Em.. Some unresolved comments are hidden after merged master..."}}
{"actor":{"display_login":"winoros"}}