Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Aug 14, 2023
1 parent 3a5f88c commit e1c108f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions planner/core/tiflash_selection_late_materialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,10 @@ func groupByColumnsSortBySelectivity(sctx sessionctx.Context, conds []expression

// Sort exprGroups by selectivity in ascending order
slices.SortStableFunc(exprGroups, func(x, y expressionGroup) int {
c := cmp.Compare(x.selectivity, y.selectivity)
if c < 0 {
return c
}
if x.selectivity == y.selectivity && len(x.exprs) < len(y.exprs) {
return -1
}
return c
return cmp.Compare(x.selectivity, y.selectivity)
})

return exprGroups
Expand Down

0 comments on commit e1c108f

Please sign in to comment.