Commit Graph

56 Commits

Author SHA1 Message Date
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
b87b5f0898 expression: refine built-in func truncate to support uint arg (#8000) 2018-10-24 15:42:32 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05: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
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
2399126166 expression: rewrite builtin function: CRC32 (#4215) 2017-08-17 18:43:55 +08:00
94c5420a86 expression: rewrite builtin function: TRUNCATE (#4179) 2017-08-16 12:53:10 +08:00
276defa164 expression: rewrite builtin function RAND, POW, SIGN, SQRT (#4182) 2017-08-16 00:07:22 +08:00
7e1836aa12 expression: rewrite builtin function: RADIANS (#4155) 2017-08-15 13:51:47 +08:00
3b94ee1f59 expression: rewrite builtin function: CONV (#4100) 2017-08-10 11:18:10 +08:00
e4c104b291 expression, executor, plan: rewrite builtin function PI (#3846) 2017-07-28 11:30:10 +08:00
1f0c4cb4e1 expression, executor, plan: rewrite builtin function exp (#3871) 2017-07-26 09:59:27 +08:00
4175a7e708 expression, executor, plan: rewrite builtin function cot (#3856) 2017-07-25 00:08:58 +08:00
e4ea902125 expression, executor, plan: rewrite builtin function ceil (#3819) 2017-07-20 14:32:35 +08:00
37d8ea3e38 expression, executor, plan: rewrite builtin function floor (#3791) 2017-07-19 22:19:01 +08:00
8b289ed94a expression, executor, plan: rewrite builtin function atan (#3788) 2017-07-19 11:29:37 +08:00
287d563481 expression, executor, plan: rewrite builtin function acos (#3789) 2017-07-18 14:51:37 +08:00
6ea235f69f expression, executor, plan: rewrite builtin function log (#3763) 2017-07-17 16:06:47 +08:00
9436c49dc7 expression, executor, plan: rewrite builtin function asin (#3765) 2017-07-17 10:37:42 +08:00
0da3efabdb expression, executor: rewrite builtin func log10 (#3733) 2017-07-13 12:16:55 +08:00
f4abbdbc5e expression, plan: move typeinfer of agg funcs to expression rewriter (#3654) 2017-07-10 16:24:25 +08:00
3dede36c84 expression, executor: rewrite builtin func log2 (#3653) 2017-07-08 20:28:46 +08:00
0c3e6f4e12 expression, executor: rewrite builtin func degrees (#3642) 2017-07-08 13:39:42 +08:00
91f08579b6 expression, executor: rewrite builtin func Sin (#3609)
* builtin-Sin

* builtin-Sin add test

* Fix tp.Flen

* add valid string input argument test

* Nothing changed

* fmt code

* fix comment
2017-07-05 13:42:15 +08:00
760bdc9d5b expression, executor: rewrite builtin func Cos (#3607) 2017-07-05 13:03:42 +08:00
623ac1ffb0 expression, executor: rewrite builtin func tan (#3621) 2017-07-05 10:56:41 +08:00
5b979d09e0 *: Adding ppc64le specific fixes for some tests (#3477)
The changes were required because of the different behavior of some casting and exponential operations on ppc64le platform.

Add fix for "expression/builtin_math_test.go" and "store/tikv/lock_test.go"
2017-06-19 14:14:12 +08:00
60c705cc81 expression: refine builtin-func RAND (fix issue3211) (#3213) 2017-05-05 19:51:12 +08:00
2693f264a7 *: Add truncate function in math (#3077) 2017-04-26 10:03:32 +08:00
f5270adcf9 fixed math operation returned wrong error code (#3017) 2017-04-12 11:37:38 +08:00
a125e5378c add mysql builtin function cos,from_base64,tan,cot (#2977) 2017-04-05 22:35:28 +08:00
5bb70abbe5 * built-in: add "Sin(x)" function (#2885) 2017-03-27 00:44:46 +08:00
4ce80d8ec1 fix bug, move IngoreTruncate to test code (#2898) 2017-03-21 10:09:14 +08:00
aaee21f864 builtin: add degrees built-in function (#2844) 2017-03-20 12:51:46 +08:00
e03d952b41 builtin: add radians built-in function (#2841) 2017-03-18 13:15:55 +08:00
5f9d680a00 expression: keep the return value of builtin conv consistent with mysql (#2842) 2017-03-17 17:12:14 +08:00
1f5e76bc9f builtin: add pi built-in function (#2836) 2017-03-17 11:57:06 +08:00
961386d31d builtin: add exp built-in function (#2847) 2017-03-16 07:50:15 -05:00
a5d87a4678 implement some builtin functions: acos, asin, atan (#2828) 2017-03-16 14:31:08 +08:00
5aec72ce81 expression,plan: fix some issues of ROUND func (#2461) 2017-01-22 11:35:26 +08:00
383f203735 *: add builtin function FLOOR (#2484) 2017-01-22 11:18:15 +08:00
30f97af07f *: fixed a mistake whileing adding sqrt math func (#2513) 2017-01-19 19:24:05 +08:00
72403f3578 *: added builtin function sqrt (#2493) 2017-01-18 12:43:59 +08:00
475d7e3842 expression: change test. (#2488) 2017-01-17 20:08:13 +08:00
d1ef3e5687 *: add builtin function SIGN (#2427) 2017-01-13 10:31:05 +08:00