{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/8031","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/8031/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/8031/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/8031/events","html_url":"https://github.com/pingcap/tidb/pull/8031","id":373316580,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MjczNTc4","number":8031,"title":"executor: fix wrong result when index join on union scan.","user":{"login":"eurekaka","id":6261973,"node_id":"MDQ6VXNlcjYyNjE5NzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6261973?v=4","gravatar_id":"","url":"https://api.github.com/users/eurekaka","html_url":"https://github.com/eurekaka","followers_url":"https://api.github.com/users/eurekaka/followers","following_url":"https://api.github.com/users/eurekaka/following{/other_user}","gists_url":"https://api.github.com/users/eurekaka/gists{/gist_id}","starred_url":"https://api.github.com/users/eurekaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eurekaka/subscriptions","organizations_url":"https://api.github.com/users/eurekaka/orgs","repos_url":"https://api.github.com/users/eurekaka/repos","events_url":"https://api.github.com/users/eurekaka/events{/privacy}","received_events_url":"https://api.github.com/users/eurekaka/received_events","type":"User","site_admin":false},"labels":[{"id":970807266,"node_id":"MDU6TGFiZWw5NzA4MDcyNjY=","url":"https://api.github.com/repos/pingcap/tidb/labels/component/executor","name":"component/executor","color":"000000","default":false},{"id":630229257,"node_id":"MDU6TGFiZWw2MzAyMjkyNTc=","url":"https://api.github.com/repos/pingcap/tidb/labels/type/bug-fix","name":"type/bug-fix","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-24T05:55:58Z","updated_at":"2018-10-24T06:08:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/8031","html_url":"https://github.com/pingcap/tidb/pull/8031","diff_url":"https://github.com/pingcap/tidb/pull/8031.diff","patch_url":"https://github.com/pingcap/tidb/pull/8031.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\nIf outer rows of index lookup join is larger than one batch, result of index lookup join is wrong.\r\n\r\n### What is changed and how it works?\r\n\r\nDo not modify Plan of dataReaderBuilder directly, because it would impact next batch of outer rows, as well as other concurrent inner workers. Instead, build a local child builder to store the child plan.\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\nSide effects\r\n\r\nN/A\r\n\r\nRelated changes\r\n\r\nN/A"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/432525018","html_url":"https://github.com/pingcap/tidb/pull/8031#issuecomment-432525018","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/8031","id":432525018,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjUyNTAxOA==","user":{"login":"eurekaka","id":6261973,"node_id":"MDQ6VXNlcjYyNjE5NzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6261973?v=4","gravatar_id":"","url":"https://api.github.com/users/eurekaka","html_url":"https://github.com/eurekaka","followers_url":"https://api.github.com/users/eurekaka/followers","following_url":"https://api.github.com/users/eurekaka/following{/other_user}","gists_url":"https://api.github.com/users/eurekaka/gists{/gist_id}","starred_url":"https://api.github.com/users/eurekaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eurekaka/subscriptions","organizations_url":"https://api.github.com/users/eurekaka/orgs","repos_url":"https://api.github.com/users/eurekaka/repos","events_url":"https://api.github.com/users/eurekaka/events{/privacy}","received_events_url":"https://api.github.com/users/eurekaka/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T06:08:05Z","updated_at":"2018-10-24T06:08:05Z","author_association":"CONTRIBUTOR","body":"/run-all-tests"}}
{"actor":{"display_login":"eurekaka"}}