-
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
*: change package name from plan
to planner
#7760
Conversation
/run-all-tests |
Please update the PR title. |
plan
to planner
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're some unnecessary changes.
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. Please fix the CI
executor/builder.go
Outdated
@@ -1738,27 +1738,27 @@ func (b *executorBuilder) buildIndexLookUpReader(v *plan.PhysicalIndexLookUpRead | |||
// dataReaderBuilder build an executor. | |||
// The executor can be used to read data in the ranges which are constructed by datums. | |||
// Differences from executorBuilder: | |||
// 1. dataReaderBuilder calculate data range from argument, rather than plan. | |||
// 1. dataReaderBuilder calculate data range from argument, rather than core. |
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.
false positive
executor/builder.go
Outdated
@@ -1821,7 +1821,7 @@ func (builder *dataReaderBuilder) buildIndexLookUpReaderForIndexJoin(ctx context | |||
return e, errors.Trace(err) | |||
} | |||
|
|||
// buildKvRangesForIndexJoin builds kv ranges for index join when the inner plan is index scan plan. | |||
// buildKvRangesForIndexJoin builds kv ranges for index join when the inner plan is index scan core. |
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.
ditto
executor/union_scan.go
Outdated
@@ -103,7 +103,7 @@ type UnionScanExec struct { | |||
conditions []expression.Expression | |||
columns []*model.ColumnInfo | |||
|
|||
// belowHandleIndex is the handle's position of the below scan plan. | |||
// belowHandleIndex is the handle's position of the below scan planner. |
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.
ditto
expression/expr_to_pb.go
Outdated
@@ -66,7 +66,7 @@ func ExpressionsToPB(sc *stmtctx.StatementContext, exprs []Expression, client kv | |||
return | |||
} | |||
|
|||
// ExpressionsToPBList converts expressions to tipb.Expr list for new plan. | |||
// ExpressionsToPBList converts expressions to tipb.Expr list for new planner. |
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.
ditto
planner/core/common_plans.go
Outdated
@@ -102,14 +102,14 @@ type ChecksumTable struct { | |||
Tables []*ast.TableName | |||
} | |||
|
|||
// CancelDDLJobs represents a cancel DDL jobs plan. | |||
// CancelDDLJobs represents a cancel DDL jobs planner. |
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.
ditto
planner/core/task.go
Outdated
@@ -43,7 +43,7 @@ type copTask struct { | |||
indexPlan PhysicalPlan | |||
tablePlan PhysicalPlan | |||
cst float64 | |||
// indexPlanFinished means we have finished index plan. | |||
// indexPlanFinished means we have finished index planner. |
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.
ditto
planner/core/task.go
Outdated
// If all columns in topN are from index plan, we can push it to index plan. Or we finish the index plan and | ||
// push it to table plan. | ||
// If all columns in topN are from index plan, we can push it to index planner. Or we finish the index plan and | ||
// push it to table planner. |
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.
ditto
planner/core/trace.go
Outdated
|
||
import ( | ||
"github.com/pingcap/tidb/ast" | ||
) | ||
|
||
// Trace represents a trace plan. | ||
// Trace represents a trace planner. |
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.
ditto
sessionctx/variable/session.go
Outdated
PlanID int | ||
|
||
// PlanColumnID is the unique id for column when building plan. | ||
// PlanColumnID is the unique id for column when building planner. |
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.
ditto
@@ -20,7 +20,7 @@ import ( | |||
"github.com/pingcap/tidb/types" | |||
) | |||
|
|||
// conditionChecker checks if this condition can be pushed to index plan. | |||
// conditionChecker checks if this condition can be pushed to index planner. | |||
type conditionChecker struct { |
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.
ditto
/run-all-tests |
executor/adapter.go
Outdated
@@ -155,11 +155,11 @@ func (a *ExecStmt) IsPrepared() bool { | |||
|
|||
// IsReadOnly returns true if a statement is read only. | |||
// It will update readOnlyCheckStmt if current ExecStmt can be conveted to | |||
// a plan.Execute. Last step is using ast.IsReadOnly function to determine | |||
// a core.Execute. Last step is using ast.IsReadOnly function to determine |
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.
Oh, it used outside the planner package. What about import it as plancore
when its outside the planner package?
/run-all-tests |
/run-unit-test |
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
@zz-jason Please resolve the conflicts. |
…n-changeto-planner
/run-all-tests |
/run-integration-ddl-test |
/run-integration-ddl-test tidb-test=pr/628 |
LGTM |
…n-changeto-planner
What problem does this PR solve?
This PR makes the following two package changes:
The propose of this PR is to:
What is changed and how it works?
almost all the code changes are made by the shell scripts
Check List
Tests