From bb2440b63690c75e1be23da6995cf00924e9658c Mon Sep 17 00:00:00 2001 From: Du Chuan Date: Tue, 2 Jan 2018 02:09:25 +0800 Subject: [PATCH] store: enable builtin aggregation function 'bit_and', 'bit_or', 'bit_or' (#5533) --- store/tikv/coprocessor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/tikv/coprocessor.go b/store/tikv/coprocessor.go index ac8e90c6f23bd..470c52ceb8b29 100644 --- a/store/tikv/coprocessor.go +++ b/store/tikv/coprocessor.go @@ -86,7 +86,8 @@ func (c *CopClient) supportExpr(exprType tipb.ExprType) bool { case tipb.ExprType_Case, tipb.ExprType_If, tipb.ExprType_IfNull, tipb.ExprType_Coalesce: return true // aggregate functions. - case tipb.ExprType_Count, tipb.ExprType_First, tipb.ExprType_Max, tipb.ExprType_Min, tipb.ExprType_Sum, tipb.ExprType_Avg: + case tipb.ExprType_Count, tipb.ExprType_First, tipb.ExprType_Max, tipb.ExprType_Min, tipb.ExprType_Sum, tipb.ExprType_Avg, + tipb.ExprType_Agg_BitXor, tipb.ExprType_Agg_BitAnd, tipb.ExprType_Agg_BitOr: return true // json functions. case tipb.ExprType_JsonType, tipb.ExprType_JsonExtract, tipb.ExprType_JsonUnquote,