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: