-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
planner: fix a bug that can't find column in indexLookupJoin with virtual generated column #18516
planner: fix a bug that can't find column in indexLookupJoin with virtual generated column #18516
Conversation
/run-all-tests |
Failed UT case |
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #18516 +/- ##
================================================
- Coverage 79.0884% 79.0677% -0.0208%
================================================
Files 549 549
Lines 149047 149210 +163
================================================
+ Hits 117879 117977 +98
- Misses 21659 21702 +43
- Partials 9509 9531 +22 |
/run-all-tests |
/run-common-test |
1 similar comment
/run-common-test |
73ca629
to
d80653c
Compare
/run-common-test |
/run-all-tests |
PTAL @wjhuang2016 Please resolve conflicts. |
planner/core/task.go
Outdated
if t.tablePlan != nil { | ||
tp := t.tablePlan | ||
for len(tp.Children()) > 0 { | ||
tp = tp.Children()[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tp = tp.Children()[0] | |
if len(tp.Children()) == 1 { | |
tp = tp.Children()[0] | |
} else { | |
join := tp.(*PhysicalBroadCastJoin) | |
tp = join.children[1-join.InnerChildIdx] | |
} |
We should consider broadcast join in cop task. And by the way, this check can be moved to https://github.com/pingcap/tidb/pull/18516/files#diff-2f445d8cb9c2f7d8ec4fb0586ae1f510R730
e329b81
to
8666e5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@wjhuang2016 merge failed. |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@wjhuang2016 merge failed. |
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #19439 |
Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com
What problem does this PR solve?
Issue Number: close #18515
Problem Summary:
ExpandVirtualColumn is missed.
What is changed and how it works?
(p PointGetPlan) Init
to initialize.goRelated changes
Check List
Tests
Side effects
Release note