-
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: move base plan related output of core pkg and make it well-pkged #52529
Conversation
Signed-off-by: AilinKid <[email protected]>
Hi @AilinKid. 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/test-infra repository. |
Signed-off-by: AilinKid <[email protected]>
Signed-off-by: AilinKid <[email protected]>
Signed-off-by: AilinKid <[email protected]>
/hold |
/ok-to-test |
Signed-off-by: AilinKid <[email protected]>
/unhold |
/test unit-test |
@AilinKid: The specified target(s) for
Use 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 kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52529 +/- ##
================================================
+ Coverage 74.1426% 74.2340% +0.0914%
================================================
Files 1470 1470
Lines 354534 429389 +74855
================================================
+ Hits 262861 318753 +55892
- Misses 72435 90738 +18303
- Partials 19238 19898 +660
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: AilinKid <[email protected]>
Signed-off-by: AilinKid <[email protected]>
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.
It seems we don't need to rename it.
@@ -22,6 +22,7 @@ import ( | |||
|
|||
"github.com/pingcap/tidb/pkg/expression" | |||
"github.com/pingcap/tidb/pkg/parser/ast" | |||
base2 "github.com/pingcap/tidb/pkg/planner/core/base" |
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.
Can I ask why do we need to rename here?
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.
there is another core pkg in the import list here, oh! for this file, its not, I will change it back to base
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.
nice catch
Signed-off-by: AilinKid <[email protected]>
[LGTM Timeline notifier]Timeline:
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, hawkingrei, hi-rustin, lance6716 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 |
What problem does this PR solve?
Issue Number: ref #51664
Problem Summary:
What changed and how does it work?
move
plan_base.go
fromcore/
tocore/base/
since
PhysicalPlan
definition depends onTask
, we should moveTask
interface definitioncore/base/
here tooThe general
Task
definition shouldn't rely on any concrete TaskImpl, so I remove the*RootTask
as the return type insideTask
interface.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.