Skip to content

Commit

Permalink
planner/window: fix comments by using a dummy window spec(pingcap#11008)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxingliang authored and root committed Aug 10, 2019
1 parent 5fa8be3 commit ee146a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/logical_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3106,7 +3106,7 @@ func (b *PlanBuilder) buildWindowFunctionFrame(ctx context.Context, spec *ast.Wi

func (b *PlanBuilder) checkWindowFuncArgs(ctx context.Context, p LogicalPlan, windowFuncExprs []*ast.WindowFuncExpr, windowAggMap map[*ast.AggregateFuncExpr]int) error {
for _, windowFuncExpr := range windowFuncExprs {
_, _, _, args, err := b.buildProjectionForWindow(ctx, p, &windowFuncExpr.Spec, windowFuncExpr.Args, windowAggMap)
_, _, _, args, err := b.buildProjectionForWindow(ctx, p, &ast.WindowSpec{}, windowFuncExpr.Args, windowAggMap)
if err != nil {
return err
}
Expand Down

0 comments on commit ee146a6

Please sign in to comment.