Skip to content

Commit

Permalink
executor: fix typo (#22385)
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 authored Jan 18, 2021
1 parent 405c6bb commit 8ddd41c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/aggfuncs/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func BuildWindowFunctions(ctx sessionctx.Context, windowFuncDesc *aggregation.Ag
case ast.WindowFuncNtile:
return buildNtile(windowFuncDesc, ordinal)
case ast.WindowFuncPercentRank:
return buildPercenRank(ordinal, orderByCols)
return buildPercentRank(ordinal, orderByCols)
case ast.WindowFuncLead:
return buildLead(ctx, windowFuncDesc, ordinal)
case ast.WindowFuncLag:
Expand Down Expand Up @@ -685,7 +685,7 @@ func buildNtile(aggFuncDes *aggregation.AggFuncDesc, ordinal int) AggFunc {
return &ntile{baseAggFunc: base, n: n}
}

func buildPercenRank(ordinal int, orderByCols []*expression.Column) AggFunc {
func buildPercentRank(ordinal int, orderByCols []*expression.Column) AggFunc {
base := baseAggFunc{
ordinal: ordinal,
}
Expand Down

0 comments on commit 8ddd41c

Please sign in to comment.