Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Nov 2, 2023
1 parent dc06ffe commit ce4864b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/planner/core/find_best_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,10 @@ func (ds *DataSource) findBestTask(prop *property.PhysicalProperty, planCounter
ds.storeTask(prop, unenforcedTask)
return unenforcedTask, cnt, nil
}
cntPlan += cnt

// Then, explore the bestTask with enforced prop
prop.CanAddEnforcer = true
cntPlan += cnt
prop.SortItems = []property.SortItem{}
prop.MPPPartitionTp = property.AnyType
} else if prop.MPPPartitionTp != property.AnyType {
Expand Down

0 comments on commit ce4864b

Please sign in to comment.