Skip to content

Commit

Permalink
expression/expression: add pushdown functions (#26786)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhangxian1008 committed Aug 8, 2021
1 parent 01a87e3 commit 30cf15a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion expression/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -1019,10 +1019,12 @@ func scalarExprSupportedByFlash(function *ScalarFunction) bool {
ast.Concat, ast.ConcatWS,
ast.Date, ast.Year, ast.Month, ast.Day,
ast.DateDiff, ast.TimestampDiff, ast.DateFormat, ast.FromUnixTime,

ast.Sqrt, ast.Log, ast.Log2, ast.Log10, ast.Ln, ast.Exp, ast.Pow, ast.Sign,
ast.Radians, ast.Degrees, ast.Conv, ast.CRC32,
ast.JSONLength,
ast.InetNtoa, ast.InetAton, ast.Inet6Ntoa, ast.Inet6Aton:
ast.InetNtoa, ast.InetAton, ast.Inet6Ntoa, ast.Inet6Aton,
ast.Coalesce, ast.ASCII, ast.Length, ast.Trim, ast.Position:
return true
case ast.Substr, ast.Substring, ast.Left, ast.Right, ast.CharLength:
switch function.Function.PbCode() {
Expand Down

0 comments on commit 30cf15a

Please sign in to comment.