Skip to content

Commit

Permalink
expression: push builtin function FLOOR down to TiKV (pingcap#6736)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason authored Jun 4, 2018
1 parent 1327ebb commit 30ff743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expression/distsql_builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ func getSignatureByPB(ctx sessionctx.Context, sigCode tipb.ScalarFuncSig, tp *ti
f = &builtinFloorIntToDecSig{base}
case tipb.ScalarFuncSig_FloorDecToInt:
f = &builtinFloorDecToIntSig{base}
case tipb.ScalarFuncSig_FloorDecToDec:
f = &builtinFloorDecToDecSig{base}
case tipb.ScalarFuncSig_FloorReal:
f = &builtinFloorRealSig{base}

Expand Down
1 change: 1 addition & 0 deletions expression/expr_to_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ func (pc PbConverter) canFuncBePushed(sf *ScalarFunction) bool {
ast.Abs,
ast.Ceil,
ast.Ceiling,
ast.Floor,

// control flow functions.
ast.Case,
Expand Down

0 comments on commit 30ff743

Please sign in to comment.