Skip to content

Commit

Permalink
plan: rename dagPhysicalOptimize to physicalOptimize (pingcap#6117)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and shenli committed Mar 22, 2018
1 parent a90ecea commit 838ac2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plan/optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func doOptimize(flag uint64, logic LogicalPlan) (PhysicalPlan, error) {
if !AllowCartesianProduct && existsCartesianProduct(logic) {
return nil, errors.Trace(ErrCartesianProductUnsupported)
}
physical, err := dagPhysicalOptimize(logic)
physical, err := physicalOptimize(logic)
if err != nil {
return nil, errors.Trace(err)
}
Expand All @@ -145,7 +145,7 @@ func logicalOptimize(flag uint64, logic LogicalPlan) (LogicalPlan, error) {
return logic, errors.Trace(err)
}

func dagPhysicalOptimize(logic LogicalPlan) (PhysicalPlan, error) {
func physicalOptimize(logic LogicalPlan) (PhysicalPlan, error) {
logic.preparePossibleProperties()
logic.deriveStats()
t, err := logic.convert2PhysicalPlan(&requiredProp{taskTp: rootTaskType, expectedCnt: math.MaxFloat64})
Expand Down

0 comments on commit 838ac2f

Please sign in to comment.