{"action":"created","comment":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/comments/230674641","pull_request_review_id":171462042,"id":230674641,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDY3NDY0MQ==","diff_hunk":"@@ -0,0 +1,165 @@\n+// Copyright 2018 PingCAP, Inc.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//     http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package core\n+\n+import (\n+\t\"github.com/pingcap/parser/ast\"\n+\t\"github.com/pingcap/tidb/expression\"\n+)\n+\n+type outerJoinEliminator struct {\n+\tcols    [][]*expression.Column\n+\tschemas []*expression.Schema\n+}\n+\n+// tryToEliminateOuterJoin will eliminate outer join plan base on the following rules\n+// 1. outer join elimination: For example left outer join, if the parent only use the\n+//    columns from left table and the join key of right table(the inner table) is a unique\n+//    key of the right table. the left outer join can be eliminated.\n+// 2. outer join elimination with distinct: For example left outer join. If the parent\n+//    only use the columns from left table with 'distinct' label. The left outer join can\n+//    be eliminated.\n+func (o *outerJoinEliminator) tryToEliminateOuterJoin(p *LogicalJoin) LogicalPlan {\n+\tswitch p.JoinType {\n+\tcase LeftOuterJoin:\n+\t\treturn o.doEliminate(p, 1)\n+\tcase RightOuterJoin:\n+\t\treturn o.doEliminate(p, 0)\n+\tdefault:\n+\t\treturn nil\n+\t}\n+}\n+\n+func (o *outerJoinEliminator) doEliminate(p *LogicalJoin, innerChildIdx int) LogicalPlan {\n+\t// outer join elimination with distinct\n+\tif len(o.cols) > 0 {\n+\t\tcols := o.cols[len(o.cols)-1]\n+\t\tallColsInSchema := true\n+\t\tfor _, col := range cols {\n+\t\t\tcolumnName := &ast.ColumnName{Schema: col.DBName, Table: col.TblName, Name: col.ColName}\n+\t\t\tif c, _ := p.children[1^innerChildIdx].Schema().FindColumn(columnName); c == nil {\n+\t\t\t\tallColsInSchema = false\n+\t\t\t\tbreak\n+\t\t\t}\n+\t\t}\n+\t\tif allColsInSchema == true {\n+\t\t\treturn p.children[1^innerChildIdx]\n+\t\t}\n+\t}\n+\n+\t// outer join elimination without distinct\n+\t// first, check whether the parent's schema columns are all in left or right\n+\tif len(o.schemas) == 0 {\n+\t\treturn nil\n+\t}\n+\tfor _, col := range o.schemas[len(o.schemas)-1].Columns {\n+\t\tcolumnName := &ast.ColumnName{Schema: col.DBName, Table: col.TblName, Name: col.ColName}\n+\t\tif c, _ := p.children[1^innerChildIdx].Schema().FindColumn(columnName); c == nil {\n+\t\t\treturn nil\n+\t\t}\n+\t}\n+\t// second, check whether the other side join keys are unique keys\n+\tp.children[innerChildIdx].buildKeyInfo()\n+\tvar joinKeys []*expression.Column\n+\tfor _, eqCond := range p.EqualConditions {\n+\t\tjoinKeys = append(joinKeys, eqCond.GetArgs()[innerChildIdx].(*expression.Column))\n+\t}\n+\ttmpSchema := expression.NewSchema(joinKeys...)\n+\tfor _, keyInfo := range p.children[innerChildIdx].Schema().Keys {\n+\t\tjoinKeysContainKeyInfo := true\n+\t\tfor _, col := range keyInfo {\n+\t\t\tcolumnName := &ast.ColumnName{Schema: col.DBName, Table: col.TblName, Name: col.ColName}\n+\t\t\tif c, _ := tmpSchema.FindColumn(columnName); c == nil {\n+\t\t\t\tjoinKeysContainKeyInfo = false\n+\t\t\t\tbreak\n+\t\t\t}\n+\t\t}\n+\t\tif joinKeysContainKeyInfo {\n+\t\t\treturn p.children[1^innerChildIdx]\n+\t\t}\n+\t}\n+\t// Third, if p.children[innerChildIdx] is datasource, we must check specially index.\n+\t// Because buildKeyInfo() don't save the index without notnull flag.\n+\t// But in outer join, null==null don't return true. The null index do not affect the res.\n+\tif ds, ok := p.children[innerChildIdx].(*DataSource); ok {\n+\t\tfor _, path := range ds.possibleAccessPaths {\n+\t\t\tif path.isTablePath {\n+\t\t\t\tcontinue\n+\t\t\t}\n+\t\t\tidx := path.index\n+\t\t\tif !idx.Unique {\n+\t\t\t\tcontinue\n+\t\t\t}\n+\t\t\tjoinKeysContainIndex := true\n+\t\t\tfor _, idxCol := range idx.Columns {\n+\t\t\t\tcolumnName := &ast.ColumnName{Schema: ds.DBName, Table: ds.tableInfo.Name, Name: idxCol.Name}\n+\t\t\t\tif c, _ := tmpSchema.FindColumn(columnName); c == nil {\n+\t\t\t\t\tjoinKeysContainIndex = false\n+\t\t\t\t\tbreak\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tif joinKeysContainIndex {\n+\t\t\t\treturn p.children[1^innerChildIdx]\n+\t\t\t}\n+\t\t}\n+\t}\n+\treturn nil\n+}\n+\n+func (o *outerJoinEliminator) optimize(p LogicalPlan) (LogicalPlan, error) {\n+\t// check the distinct\n+\tif agg, ok := p.(*LogicalAggregation); ok && len(agg.groupByCols) > 0 {\n+\t\tisDistinctAgg := true\n+\t\tfor _, aggDesc := range agg.AggFuncs {","path":"planner/core/rule_join_elimination.go","position":124,"original_position":124,"commit_id":"83b589c2cc642c0ed6517a7f27eb8a685ec7de0d","original_commit_id":"4b4936d1a6aacbe39d6d1d03060567ca9f3721fa","user":{"login":"XuHuaiyu","id":9039012,"node_id":"MDQ6VXNlcjkwMzkwMTI=","avatar_url":"https://avatars1.githubusercontent.com/u/9039012?v=4","gravatar_id":"","url":"https://api.github.com/users/XuHuaiyu","html_url":"https://github.com/XuHuaiyu","followers_url":"https://api.github.com/users/XuHuaiyu/followers","following_url":"https://api.github.com/users/XuHuaiyu/following{/other_user}","gists_url":"https://api.github.com/users/XuHuaiyu/gists{/gist_id}","starred_url":"https://api.github.com/users/XuHuaiyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuHuaiyu/subscriptions","organizations_url":"https://api.github.com/users/XuHuaiyu/orgs","repos_url":"https://api.github.com/users/XuHuaiyu/repos","events_url":"https://api.github.com/users/XuHuaiyu/events{/privacy}","received_events_url":"https://api.github.com/users/XuHuaiyu/received_events","type":"User","site_admin":false},"body":"Can we extract line122 ~ line135 to an individual function like `(o *outerJoinEliminator)isDistinctAgg`\r\n\r\nThus this block can be rewritten as \r\n``` go\r\n\t\tif o.isDistinctAgg() {\r\n\t\t\to.cols = append(o.cols, agg.groupByCols)\r\n\t\t\tdefer func() {\r\n\t\t\t\to.cols = o.cols[:len(o.cols)-1]\r\n\t\t\t}()\r\n\t\t}\r\n```","created_at":"2018-11-05T09:12:00Z","updated_at":"2018-11-05T09:14:50Z","html_url":"https://github.com/pingcap/tidb/pull/8021#discussion_r230674641","pull_request_url":"https://api.github.com/repos/pingcap/tidb/pulls/8021","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/comments/230674641"},"html":{"href":"https://github.com/pingcap/tidb/pull/8021#discussion_r230674641"},"pull_request":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/8021"}}},"pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/8021","id":224964106,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0OTY0MTA2","html_url":"https://github.com/pingcap/tidb/pull/8021","diff_url":"https://github.com/pingcap/tidb/pull/8021.diff","patch_url":"https://github.com/pingcap/tidb/pull/8021.patch","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/8021","number":8021,"state":"open","locked":false,"title":"planner: support join elimination rule","user":{"login":"lzmhhh123","id":26040259,"node_id":"MDQ6VXNlcjI2MDQwMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/26040259?v=4","gravatar_id":"","url":"https://api.github.com/users/lzmhhh123","html_url":"https://github.com/lzmhhh123","followers_url":"https://api.github.com/users/lzmhhh123/followers","following_url":"https://api.github.com/users/lzmhhh123/following{/other_user}","gists_url":"https://api.github.com/users/lzmhhh123/gists{/gist_id}","starred_url":"https://api.github.com/users/lzmhhh123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzmhhh123/subscriptions","organizations_url":"https://api.github.com/users/lzmhhh123/orgs","repos_url":"https://api.github.com/users/lzmhhh123/repos","events_url":"https://api.github.com/users/lzmhhh123/events{/privacy}","received_events_url":"https://api.github.com/users/lzmhhh123/received_events","type":"User","site_admin":false},"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\nsupport join elimination rule #7704 \r\n\r\n### What is changed and how it works?\r\nAdd a logical optimize rule:\r\n1. outer join elimination: For example left outer join, if the parent only use the columns from left table and the join key of right table(the inner table) is a unique key of the right table. the left outer join can be eliminated.\r\n2. outer join elimination with distinct: For example left outer join. If the parent only use the columns from left table with 'distinct' label. The left outer join can be eliminated.\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 - Integration test\r\n\r\nCode changes\r\n\r\n - Has exported function/method change\r\n - Has exported variable/fields change\r\n\r\nSide effects\r\n\r\n - Increased code complexity\r\n\r\n","created_at":"2018-10-23T09:32:49Z","updated_at":"2018-11-05T09:14:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03c2c6bac771151ad5ed6edb0e42e505e3cc202a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":667671533,"node_id":"MDU6TGFiZWw2Njc2NzE1MzM=","url":"https://api.github.com/repos/pingcap/tidb/labels/component/planner","name":"component/planner","color":"1d76db","default":false},{"id":564574080,"node_id":"MDU6TGFiZWw1NjQ1NzQwODA=","url":"https://api.github.com/repos/pingcap/tidb/labels/status/LGT1","name":"status/LGT1","color":"d4c5f9","default":false},{"id":256872088,"node_id":"MDU6TGFiZWwyNTY4NzIwODg=","url":"https://api.github.com/repos/pingcap/tidb/labels/type/enhancement","name":"type/enhancement","color":"84b6eb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pingcap/tidb/pulls/8021/commits","review_comments_url":"https://api.github.com/repos/pingcap/tidb/pulls/8021/comments","review_comment_url":"https://api.github.com/repos/pingcap/tidb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/8021/comments","statuses_url":"https://api.github.com/repos/pingcap/tidb/statuses/83b589c2cc642c0ed6517a7f27eb8a685ec7de0d","head":{"label":"lzmhhh123:dev/join_elimination","ref":"dev/join_elimination","sha":"83b589c2cc642c0ed6517a7f27eb8a685ec7de0d","user":{"login":"lzmhhh123","id":26040259,"node_id":"MDQ6VXNlcjI2MDQwMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/26040259?v=4","gravatar_id":"","url":"https://api.github.com/users/lzmhhh123","html_url":"https://github.com/lzmhhh123","followers_url":"https://api.github.com/users/lzmhhh123/followers","following_url":"https://api.github.com/users/lzmhhh123/following{/other_user}","gists_url":"https://api.github.com/users/lzmhhh123/gists{/gist_id}","starred_url":"https://api.github.com/users/lzmhhh123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzmhhh123/subscriptions","organizations_url":"https://api.github.com/users/lzmhhh123/orgs","repos_url":"https://api.github.com/users/lzmhhh123/repos","events_url":"https://api.github.com/users/lzmhhh123/events{/privacy}","received_events_url":"https://api.github.com/users/lzmhhh123/received_events","type":"User","site_admin":false},"repo":{"id":131932920,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE5MzI5MjA=","name":"tidb","full_name":"lzmhhh123/tidb","private":false,"owner":{"login":"lzmhhh123","id":26040259,"node_id":"MDQ6VXNlcjI2MDQwMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/26040259?v=4","gravatar_id":"","url":"https://api.github.com/users/lzmhhh123","html_url":"https://github.com/lzmhhh123","followers_url":"https://api.github.com/users/lzmhhh123/followers","following_url":"https://api.github.com/users/lzmhhh123/following{/other_user}","gists_url":"https://api.github.com/users/lzmhhh123/gists{/gist_id}","starred_url":"https://api.github.com/users/lzmhhh123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzmhhh123/subscriptions","organizations_url":"https://api.github.com/users/lzmhhh123/orgs","repos_url":"https://api.github.com/users/lzmhhh123/repos","events_url":"https://api.github.com/users/lzmhhh123/events{/privacy}","received_events_url":"https://api.github.com/users/lzmhhh123/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lzmhhh123/tidb","description":"TiDB is a distributed HTAP database compatible with the MySQL protocol ","fork":true,"url":"https://api.github.com/repos/lzmhhh123/tidb","forks_url":"https://api.github.com/repos/lzmhhh123/tidb/forks","keys_url":"https://api.github.com/repos/lzmhhh123/tidb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lzmhhh123/tidb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lzmhhh123/tidb/teams","hooks_url":"https://api.github.com/repos/lzmhhh123/tidb/hooks","issue_events_url":"https://api.github.com/repos/lzmhhh123/tidb/issues/events{/number}","events_url":"https://api.github.com/repos/lzmhhh123/tidb/events","assignees_url":"https://api.github.com/repos/lzmhhh123/tidb/assignees{/user}","branches_url":"https://api.github.com/repos/lzmhhh123/tidb/branches{/branch}","tags_url":"https://api.github.com/repos/lzmhhh123/tidb/tags","blobs_url":"https://api.github.com/repos/lzmhhh123/tidb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lzmhhh123/tidb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lzmhhh123/tidb/git/refs{/sha}","trees_url":"https://api.github.com/repos/lzmhhh123/tidb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lzmhhh123/tidb/statuses/{sha}","languages_url":"https://api.github.com/repos/lzmhhh123/tidb/languages","stargazers_url":"https://api.github.com/repos/lzmhhh123/tidb/stargazers","contributors_url":"https://api.github.com/repos/lzmhhh123/tidb/contributors","subscribers_url":"https://api.github.com/repos/lzmhhh123/tidb/subscribers","subscription_url":"https://api.github.com/repos/lzmhhh123/tidb/subscription","commits_url":"https://api.github.com/repos/lzmhhh123/tidb/commits{/sha}","git_commits_url":"https://api.github.com/repos/lzmhhh123/tidb/git/commits{/sha}","comments_url":"https://api.github.com/repos/lzmhhh123/tidb/comments{/number}","issue_comment_url":"https://api.github.com/repos/lzmhhh123/tidb/issues/comments{/number}","contents_url":"https://api.github.com/repos/lzmhhh123/tidb/contents/{+path}","compare_url":"https://api.github.com/repos/lzmhhh123/tidb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lzmhhh123/tidb/merges","archive_url":"https://api.github.com/repos/lzmhhh123/tidb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lzmhhh123/tidb/downloads","issues_url":"https://api.github.com/repos/lzmhhh123/tidb/issues{/number}","pulls_url":"https://api.github.com/repos/lzmhhh123/tidb/pulls{/number}","milestones_url":"https://api.github.com/repos/lzmhhh123/tidb/milestones{/number}","notifications_url":"https://api.github.com/repos/lzmhhh123/tidb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lzmhhh123/tidb/labels{/name}","releases_url":"https://api.github.com/repos/lzmhhh123/tidb/releases{/id}","deployments_url":"https://api.github.com/repos/lzmhhh123/tidb/deployments","created_at":"2018-05-03T02:49:12Z","updated_at":"2018-11-05T08:16:41Z","pushed_at":"2018-11-05T09:02:07Z","git_url":"git://github.com/lzmhhh123/tidb.git","ssh_url":"git@github.com:lzmhhh123/tidb.git","clone_url":"https://github.com/lzmhhh123/tidb.git","svn_url":"https://github.com/lzmhhh123/tidb","homepage":"https://pingcap.com","size":61552,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pingcap:master","ref":"master","sha":"761365b31c7c1672d8c693e2e76e0f713bf083d1","user":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":41986369,"node_id":"MDEwOlJlcG9zaXRvcnk0MTk4NjM2OQ==","name":"tidb","full_name":"pingcap/tidb","private":false,"owner":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pingcap/tidb","description":"TiDB is a distributed HTAP database compatible with the MySQL protocol ","fork":false,"url":"https://api.github.com/repos/pingcap/tidb","forks_url":"https://api.github.com/repos/pingcap/tidb/forks","keys_url":"https://api.github.com/repos/pingcap/tidb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/tidb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/tidb/teams","hooks_url":"https://api.github.com/repos/pingcap/tidb/hooks","issue_events_url":"https://api.github.com/repos/pingcap/tidb/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/tidb/events","assignees_url":"https://api.github.com/repos/pingcap/tidb/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/tidb/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/tidb/tags","blobs_url":"https://api.github.com/repos/pingcap/tidb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/tidb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/tidb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/tidb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/tidb/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/tidb/languages","stargazers_url":"https://api.github.com/repos/pingcap/tidb/stargazers","contributors_url":"https://api.github.com/repos/pingcap/tidb/contributors","subscribers_url":"https://api.github.com/repos/pingcap/tidb/subscribers","subscription_url":"https://api.github.com/repos/pingcap/tidb/subscription","commits_url":"https://api.github.com/repos/pingcap/tidb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/tidb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/tidb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/tidb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/tidb/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/tidb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/tidb/merges","archive_url":"https://api.github.com/repos/pingcap/tidb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/tidb/downloads","issues_url":"https://api.github.com/repos/pingcap/tidb/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/tidb/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/tidb/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/tidb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/tidb/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/tidb/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/tidb/deployments","created_at":"2015-09-06T04:01:52Z","updated_at":"2018-11-05T08:52:14Z","pushed_at":"2018-11-05T09:13:16Z","git_url":"git://github.com/pingcap/tidb.git","ssh_url":"git@github.com:pingcap/tidb.git","clone_url":"https://github.com/pingcap/tidb.git","svn_url":"https://github.com/pingcap/tidb","homepage":"https://pingcap.com","size":87146,"stargazers_count":15668,"watchers_count":15668,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2219,"mirror_url":null,"archived":false,"open_issues_count":578,"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":2219,"open_issues":578,"watchers":15668,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/8021"},"html":{"href":"https://github.com/pingcap/tidb/pull/8021"},"issue":{"href":"https://api.github.com/repos/pingcap/tidb/issues/8021"},"comments":{"href":"https://api.github.com/repos/pingcap/tidb/issues/8021/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/8021/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/tidb/pulls/8021/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/tidb/statuses/83b589c2cc642c0ed6517a7f27eb8a685ec7de0d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"XuHuaiyu"}}