From e386ccc074768bcb2574db561a02b2b294da1745 Mon Sep 17 00:00:00 2001 From: Han Fei Date: Mon, 5 Dec 2016 20:51:30 +0800 Subject: [PATCH] store/tikv: switch case when on. (#2171) --- store/tikv/coprocessor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/tikv/coprocessor.go b/store/tikv/coprocessor.go index fe5c1ecdc2..309f572964 100644 --- a/store/tikv/coprocessor.go +++ b/store/tikv/coprocessor.go @@ -61,6 +61,8 @@ func supportExpr(exprType tipb.ExprType) bool { return true case tipb.ExprType_Plus, tipb.ExprType_Div: return true + case tipb.ExprType_Case: + return true case tipb.ExprType_Count, tipb.ExprType_First, tipb.ExprType_Max, tipb.ExprType_Min, tipb.ExprType_Sum, tipb.ExprType_Avg: return true case kv.ReqSubTypeDesc: