Commit Graph

82 Commits

Author SHA1 Message Date
390e08bb87 expression: fix the wrong result of builtin function CONCAT_WS (#6762) 2018-06-12 19:54:40 +08:00
faeaccc35e executor:Improve the aesthetics of code review (#6138) 2018-03-26 22:19:49 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
27eedda835 expression: support 'using binary' (#4687) 2017-10-26 16:14:40 +08:00
64bc8cb6cb expression: remove "self" field in "baseBuiltinFunc" completely (#4766)
* expression: remove "self" field in "baseBuiltinFunc" completely

* address comment
2017-10-13 04:55:25 -05:00
60626912a7 expression, plan: remove "foldable" from "baseBuiltinFunc" (#4759) 2017-10-12 04:03:54 -05:00
3f4bdf6150 expression: rewrite unit test for Minus and Plus (#4691)
* expression: rewrite unit test for Minus and Plus

* move code
2017-09-30 11:47:26 +08:00
ebfcd7d90a expression: rewrite builtin function: CONVERT (#4417) 2017-09-08 11:08:39 +08:00
48c0ecae1c expression: rewrite builtin function: FIELD (#4419) 2017-09-07 20:13:09 +08:00
d82a36b562 expression: rewrite builtin function: INSERT (#4414) 2017-09-07 19:26:59 +08:00
2736812381 expression: rewrite builtin function: EXPORT_SET (#4434) 2017-09-07 18:02:15 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
62b6a9961b expression: rewrite builtin function: FORMAT (#4416) 2017-09-06 20:01:00 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
f0aad43fec expression: change isDeterministic to canBeFolded (#4393) 2017-08-31 20:35:13 +08:00
7f6d60a037 expression: builtin function OCT() handle binary value mistakenly. (#4369) 2017-08-30 10:48:36 +08:00
b7aa9137b2 expression: rewrite builtin function: MAKE_SET, QUOTE (#4318) 2017-08-29 10:06:19 +08:00
acff4b60ec expression: rewrite builtin function: FIND_IN_SET (#4247) 2017-08-21 11:31:22 +08:00
97282565fb expression: rewrite builtin function: OCT (#4154) 2017-08-15 13:41:51 +08:00
91a463670a expression: rewrite builtin function: ELT (#4124) 2017-08-12 10:24:20 +08:00
dcf4cbb2f1 expression: rewrite builtin string function: REVERSE (#4042) 2017-08-11 16:21:35 +08:00
172d7fc3af expression: rewrite builtin function: LOCATE (#4088) 2017-08-10 19:21:38 +08:00
2ca8e239fd expression: rewrite builtin string function: LPAD, RPAD (#4036) 2017-08-10 14:20:32 +08:00
b521240c8e expression: rewrite builtin string function: INSTR (#4052) 2017-08-10 12:47:10 +08:00
2ed02b287d expression: rewrite builtin function: CHAR_LENGTH (#4105)
* expression: rewrite builtin funtion 'CHAR_LENGTH'
2017-08-09 19:29:32 +08:00
bda5c44c97 expression: rewrite builtin string function: CHAR (#4041) 2017-08-08 21:05:44 +08:00
5a469c08e7 expression: rewrite builtin string function: BIN (#4039) 2017-08-07 21:12:43 +08:00
128d752939 expression: rewrite builtin string function: FROM_BASE64 (#4040) 2017-08-07 15:24:35 +08:00
3527750130 expression, executor, plan: rewrite builtin function trim. (#3936) 2017-08-01 10:54:31 +08:00
9f66dd1931 expression, executor, plan: rewrite builtin function ltrim and rtrim. (#3939) 2017-07-30 21:10:38 -05:00
ff7de9972f expression, executor, plan: rewrite builtin function unhex. (#3830) 2017-07-20 19:56:12 +08:00
e7f97522b8 expression, executor, plan: rewrite builtin function hex (#3794) 2017-07-19 17:38:12 +08:00
8805688610 expression, executor, plan: rewrite builtin function substring_index. (#3760) 2017-07-17 18:14:16 +08:00
c49bc64465 expression, executor: rewrite built-in bit_length func. (#3722)
* expression,executor: rewrite builtin func lower and upper.

* expression: fix field type for builtin func lower and upper.

* expression: fix bugs for test case.

* expression, executor: refactor builtin func for lower and upper.

* expression, executor: rewrite test case.

* expression: fix bugs for builtin func lower and upper.

* express, executor: rewrite built-in bit_length func.

* expression, executor: fix testcase for bit_length.

* expression, executor: fix bugs for built-in func bit_length.

* expression, executor: fix bugs for built-in bit_length.

* expression, executor: add test case varbinary for built-in func bit_length.

* expression, plan: field length bugs for built-in func bit_length fixed.

* expression: remove unnecessary type check for built-in func bit_length.
2017-07-15 10:36:31 +08:00
300dd5c7c1 expression, executor, plan: rewrite builtin function substring/substr. (#3711) 2017-07-12 18:22:21 +08:00
d309490b6a server,expression: fix CI and make golint happy (#3723) 2017-07-12 11:40:14 +08:00
6f6bd5cba5 expression, executor: rewrite builtin function TO_BASE64 (#3598) 2017-07-11 14:56:26 +08:00
1fbcb6252e expression, executor, plan: rewrite builtin function replace. (#3702) 2017-07-11 14:01:31 +08:00
c65ada3ae9 expression,executor: rewrite builtin func LOWER and UPPER. (#3550) 2017-07-11 13:39:18 +08:00
fd7fcdee8d expression, executor: rewrite builtin function CONCAT_WS (#3558) 2017-07-11 13:23:43 +08:00
d4b35c7806 executor, expression: rewrite builtin func left and right (#3540) 2017-07-10 20:28:12 +08:00
32159d502f expression, executor: rewrite builtin space function. (#3684) 2017-07-10 17:53:59 +08:00
f4abbdbc5e expression, plan: move typeinfer of agg funcs to expression rewriter (#3654) 2017-07-10 16:24:25 +08:00
9ff2fbae67 refactor builtin string function ord (#3671) 2017-07-09 11:46:10 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00
fc161459b3 expression, executor: rewrite builtin strcmp function (#3559) 2017-07-05 10:36:24 +08:00
0dd049d9b2 [expression] rewrite built-in string function: REPEAT (#3546)
* expression, executor: rewrite builtin func repeat

* expression, executor: rewrite builtin func repeat, remove unnecessary non-binary flag settings

* only cover retType in ScalaFunction when builtin function's retType is not mysql.TypeUnspecified

* add test cases in executor_test.go for built-in udf REPEAT
2017-06-30 14:09:29 +08:00
8aa1a632ea expression, executor: rewrite the builtin func ascii using new methods (#3537) 2017-06-27 14:47:48 +08:00
f331160eb9 expression, executor: rewrite built-in func length using new expression evaluation architecture (#3519) 2017-06-22 15:56:22 +08:00