Skip to content

Commit

Permalink
expression: support str_to_date push down to tiflash (#24847)
Browse files Browse the repository at this point in the history
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
  • Loading branch information
JaySon-Huang authored May 23, 2021
1 parent 4a1299d commit e6a5d2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions expression/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,13 @@ func scalarExprSupportedByFlash(function *ScalarFunction) bool {
case tipb.ScalarFuncSig_ExtractDatetime:
return true
}
case ast.StrToDate:
switch function.Function.PbCode() {
case tipb.ScalarFuncSig_StrToDateDate, tipb.ScalarFuncSig_StrToDateDatetime:
return true
default:
return false
}
case ast.Replace:
switch function.Function.PbCode() {
case tipb.ScalarFuncSig_Replace:
Expand Down

0 comments on commit e6a5d2b

Please sign in to comment.