From 8ddd41c960caaebbdeb28da33c781fca1464f05f Mon Sep 17 00:00:00 2001 From: Shenghui Wu <793703860@qq.com> Date: Mon, 18 Jan 2021 16:15:28 +0800 Subject: [PATCH] executor: fix typo (#22385) --- executor/aggfuncs/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/executor/aggfuncs/builder.go b/executor/aggfuncs/builder.go index 877413c7300b1..29f079823e66f 100644 --- a/executor/aggfuncs/builder.go +++ b/executor/aggfuncs/builder.go @@ -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: @@ -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, }