From ebfbe099e2aae4b2dce754c864348bd006a1f978 Mon Sep 17 00:00:00 2001 From: goroutine Date: Mon, 23 Jul 2018 12:16:12 +0800 Subject: [PATCH] executor: avoid very slow structure to interface type converation (#7121) --- executor/aggfuncs/func_count.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/aggfuncs/func_count.go b/executor/aggfuncs/func_count.go index 0948eeae1bfde..ef5f54be2c4a6 100644 --- a/executor/aggfuncs/func_count.go +++ b/executor/aggfuncs/func_count.go @@ -41,7 +41,7 @@ func (e *countOriginal4Int) UpdatePartialResult(sctx sessionctx.Context, rowsInG p := (*partialResult4Count)(pr) for _, row := range rowsInGroup { - _, isNull, err := e.args[0].EvalInt(sctx, row) + _, isNull, err := e.args[0].EvalInt(sctx, &row) if err != nil { return errors.Trace(err) }