-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: merge FullSchema and FullNames of subplans when rewriting "in (subquery)" to inner join #54334
Conversation
Welcome @dash12653! |
Hi @dash12653. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @dash12653. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #54334 +/- ##
================================================
+ Coverage 73.3867% 77.0460% +3.6593%
================================================
Files 1620 1626 +6
Lines 447041 464984 +17943
================================================
+ Hits 328069 358252 +30183
+ Misses 98877 86453 -12424
- Partials 20095 20279 +184
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@dash12653 Hi, you need to also update the test result.
|
Hi winoros, Thank you very much for your comment, I have generated a new result file now, but it seems that I accidentally closed this PR. Do you know how to reopen this PR, or do I need to create a new PR? |
It has been reopened. |
Thanks! I'll check whether the tests all are green and help to merge this pull request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, winoros The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/retest |
@AilinKid: You cannot manually add or delete the reviewing state labels, only I and the tursted members have permission to do so. In response to removing label named approved. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
/cherrypick release-7.5 |
@hawkingrei: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <[email protected]>
What problem does this PR solve?
Issue Number: close #53766
Problem Summary:
What changed and how does it work?
Merge FullSchema and FullNames of subplans when rewring "in (subquery)" to inner join, which will be used to rewrite fields when using natural join.
tidb/pkg/planner/core/expression_rewriter.go
Lines 2469 to 2485 in 4381699
The merging code I referenced was from the code in buildJoin as follows:
tidb/pkg/planner/core/logical_plan_builder.go
Lines 985 to 1026 in 4381699
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.