From a347c874f0c5f36c6bdb8c034bbb80889958952a Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Tue, 21 Jan 2025 14:16:10 +0800 Subject: [PATCH] expression: fix wrong size in the baseBuiltinFunc.cloneFrom Signed-off-by: Weizhen Wang --- pkg/expression/builtin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/expression/builtin.go b/pkg/expression/builtin.go index 909b99a0edff7..7daac7fe0bec1 100644 --- a/pkg/expression/builtin.go +++ b/pkg/expression/builtin.go @@ -431,7 +431,7 @@ func (b *baseBuiltinFunc) equal(ctx EvalContext, fun builtinFunc) bool { } func (b *baseBuiltinFunc) cloneFrom(from *baseBuiltinFunc) { - b.args = make([]Expression, 0, len(b.args)) + b.args = make([]Expression, 0, len(from.args)) for _, arg := range from.args { b.args = append(b.args, arg.Clone()) }