From 18979c68f8be8458b7d2eed8cbafb4226db38eaa Mon Sep 17 00:00:00 2001 From: Shawn Yan Date: Mon, 6 Nov 2023 10:09:40 +0800 Subject: [PATCH] planner: fix typo in comment (#48300) --- pkg/planner/core/logical_plan_builder.go | 2 +- pkg/planner/core/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/planner/core/logical_plan_builder.go b/pkg/planner/core/logical_plan_builder.go index 3072594750d92..46ca194df333f 100644 --- a/pkg/planner/core/logical_plan_builder.go +++ b/pkg/planner/core/logical_plan_builder.go @@ -2575,7 +2575,7 @@ func resolveFromSelectFields(v *ast.ColumnNameExpr, fields []*ast.SelectField, i } // havingWindowAndOrderbyExprResolver visits Expr tree. -// It converts ColunmNameExpr to AggregateFuncExpr and collects AggregateFuncExpr. +// It converts ColumnNameExpr to AggregateFuncExpr and collects AggregateFuncExpr. type havingWindowAndOrderbyExprResolver struct { inAggFunc bool inWindowFunc bool diff --git a/pkg/planner/core/util.go b/pkg/planner/core/util.go index 1b0a5c7e804f8..d4d085f3d32a2 100644 --- a/pkg/planner/core/util.go +++ b/pkg/planner/core/util.go @@ -66,7 +66,7 @@ func (a *AggregateFuncExtractor) Leave(n ast.Node) (ast.Node, bool) { } // WindowFuncExtractor visits Expr tree. -// It converts ColunmNameExpr to WindowFuncExpr and collects WindowFuncExpr. +// It converts ColumnNameExpr to WindowFuncExpr and collects WindowFuncExpr. type WindowFuncExtractor struct { // WindowFuncs is the collected WindowFuncExprs. windowFuncs []*ast.WindowFuncExpr