Skip to content

Commit

Permalink
store: enable builtin aggregation function 'bit_and', 'bit_or', 'bit_…
Browse files Browse the repository at this point in the history
…or' (#5533)
  • Loading branch information
spongedu authored and shenli committed Jan 1, 2018
1 parent fea4b02 commit bb2440b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/tikv/coprocessor.go
Expand Up @@ -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,
Expand Down

0 comments on commit bb2440b

Please sign in to comment.