Skip to content

Commit

Permalink
Fix for new cost interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fixdb committed Sep 16, 2022
1 parent c19e135 commit e59034f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions planner/core/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -1759,9 +1759,7 @@ func (p *PhysicalHashAgg) attach2TaskForMpp(tasks ...task) task {

prop := &property.PhysicalProperty{TaskTp: property.MppTaskType, ExpectedCnt: math.MaxFloat64, MPPPartitionTp: property.HashType, MPPPartitionCols: partitionCols}
newMpp := mpp.enforceExchanger(prop)
newMpp.addCost(middleAgg.GetCost(newMpp.count(), false, true, 0))
attachPlan2Task(middleAgg, newMpp)
middleAgg.SetCost(newMpp.cost())
mpp = newMpp
}

Expand Down

0 comments on commit e59034f

Please sign in to comment.