executor: fix the projection upon the indexLookUp in indexLookUpJoin can't get result.#12889
Merged
sre-bot merged 4 commits intopingcap:masterfrom Oct 24, 2019
Merged
executor: fix the projection upon the indexLookUp in indexLookUpJoin can't get result.#12889sre-bot merged 4 commits intopingcap:masterfrom
sre-bot merged 4 commits intopingcap:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12889 +/- ##
=======================================
Coverage 79.98% 79.98%
=======================================
Files 465 465
Lines 107188 107188
=======================================
Hits 85729 85729
Misses 14994 14994
Partials 6465 6465 |
Contributor
Author
|
/run-all-tests |
XuHuaiyu
reviewed
Oct 23, 2019
Contributor
XuHuaiyu
left a comment
There was a problem hiding this comment.
Please check whether this bug fix should cherry-pick to release-3.1 and release-3.0
executor/projection.go
Outdated
Contributor
There was a problem hiding this comment.
This comment is unnecessary.
executor/builder.go
Outdated
Contributor
There was a problem hiding this comment.
Can we try to refine the test case in the issue, and ensure IndexMergeJoin can be chosen?
b378621 to
a45097f
Compare
Contributor
Author
|
/rebuild |
Contributor
|
/run-all-tests |
Contributor
|
/run-all-tests |
lfkdsk
added a commit
to JustProject/tidb
that referenced
this pull request
Oct 26, 2019
…ect/tidb into feature-add-udf-support * 'feature-add-udf-support' of https://github.com/JustProject/tidb: (26 commits) *: fix bug that the kill command doesn't work when the killed session is waiting for the pessimistic lock (pingcap#12852) executor: fix the projection upon the indexLookUp in indexLookUpJoin can't get result. (pingcap#12889) planner, executor: support create view on union (pingcap#12595) planner/cascades: introduce TransformationID in cascades planner (pingcap#12879) executor: fix data race in test (pingcap#12910) executor: reuse chunk row for insert on duplicate update (pingcap#12847) ddl: speed up tests (pingcap#12888) executor: speed up test (pingcap#12896) expression: implement vectorized evaluation for `builtinSecondSig` (pingcap#12886) expression: implement vectorized evaluation for `builtinJSONObjectSig` (pingcap#12663) expression: speed up builtinRepeatSig by using MergeNulls (pingcap#12674) expression: speed up unit tests under the expression package (pingcap#12887) store,kv: snapshot doesn't cache the non-exists kv entries lead to poor 'insert ignore' performance (pingcap#12872) executor: fix data race in `GetDirtyTable()` (pingcap#12767) domain: increase TTL to reduce the occurrence of reporting min startTS errors (pingcap#12578) executor: split test for speed up (pingcap#12881) executor: fix inconsistent of grants privileges with MySQL when executing `grant all on ...` (pingcap#12330) expression: implement vectorized evaluation for `builtinJSONUnquoteSig` (pingcap#12841) tune grpc connection count between tidb and tikv (pingcap#12884) Makefile: change test parallel to 8 (pingcap#12885) ...
XiaTianliang
pushed a commit
to XiaTianliang/tidb
that referenced
this pull request
Dec 21, 2019
…can't get result. (pingcap#12889)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Fixes #12785
In
buildProjectionForIndexJoinfunction, it callsProjectionExec.Open()and recursive callsIndexLookUpExecutor.Open(). In this function, IndexLookUp will re-calculatekvRangesusinge.ranges.In this case,
e.rangesis not initiated and will build a empty range.What is changed and how it works?
Only init
ProjectExecand don't recursive init childExec.The childExec will be initiated in other
buildxxxForIndexJoinfunction.Check List
Tests
2.1 In master,
2.2 In this pr,
Code changes
Side effects
Related changes
Release note