Commit Graph

376 Commits

Author SHA1 Message Date
e79a460a28 expression: change test for string_test. (#2458) 2017-01-17 14:27:25 +08:00
c470a46283 *: remove useless code. (#2457) 2017-01-15 11:37:48 +08:00
67313335fa *: Support builtin function field (#2449) 2017-01-15 11:10:39 +08:00
8a62fc1caf *: clean code. (#2464) 2017-01-15 10:00:03 +08:00
3bfac81a4e *: add builtin function FROM_DAYS (#2434) 2017-01-15 01:10:47 +08:00
d1ef3e5687 *: add builtin function SIGN (#2427) 2017-01-13 10:31:05 +08:00
5969e9ecad *: add builtin function TIMESTAMPDIFF (#2386) 2017-01-11 00:12:48 +08:00
19c87888b4 expression: add new funcs map. (#2433) 2017-01-10 19:21:10 +08:00
52c267959b expression: refactor rest functions. (#2416) 2017-01-09 23:53:46 +08:00
b2ce51a06d *: support substr. (#2422) 2017-01-09 23:25:22 +08:00
962cd0c1fb expression: move some funcs out of builtin.go (#2418) 2017-01-09 16:33:00 +08:00
15b9956e57 *: add buildin function CONV (#2390)
*: add buildin function CONV
2017-01-09 10:57:19 +08:00
b17b83378d expression: add functionClass and builtinFunc for time funcs. (#2410) 2017-01-07 14:20:26 +08:00
2521ab4dec *: extract a builtin function factory for date arithmetic (#2403)
* *: refactor DATE_ARITH according to #2368
2017-01-07 10:52:31 +08:00
1dd0945cf3 *: add unique key info into schema (#2376) 2017-01-06 17:36:39 +08:00
ac06325a1d *: add builtin function DATEDIFF (#2374) 2017-01-06 10:01:20 +08:00
9c38f89241 expression: add functionClass and builtinFunc for str funcs. (#2399) 2017-01-05 17:02:12 +08:00
18fc9aa630 expression: implement functionClass and builtinFunction for op funcs. (#2391) 2017-01-05 16:23:31 +08:00
ef7eac6104 expression: implement functionClass and builtinFunction for math funcs. (#2389) 2017-01-05 15:25:05 +08:00
a44d9c3891 *: add builtin function UNIX_TIMESTAMP (#2369) 2017-01-05 14:09:21 +08:00
e3e7b624f2 expression,parser: add support for FIND_IN_SET function (#2373) 2017-01-05 10:58:58 +08:00
8e109b7df9 expression,parser: add support for INTERVAL function (#2370) 2017-01-05 10:38:03 +08:00
73f1fa9144 expression: implement functionClass and builtinFunction for some funcs. (#2384) 2017-01-04 21:12:49 +08:00
6d1df4f552 expression: implement functionClass and builtinFunction for info funcs. (#2385) 2017-01-04 18:52:54 +08:00
8a03344d05 *: deprecate DateArithInterval (#2368) 2017-01-04 11:42:59 +08:00
042280e1bf expression: add baseFunctionClass (#2361) 2017-01-03 11:21:14 +08:00
235a7979b9 sessionctx/varsutil: refactor system variable (#2359)
Make varsutil package manage all the system variable get and set method.
2017-01-03 11:15:50 +08:00
27f5f287f7 expression: move types.helper to expression pkg. (#2371) 2017-01-02 10:50:41 +08:00
45e841b663 expression: move some funcs out of builtin_other. (#2362) 2016-12-31 23:15:57 +08:00
f0fbe16e18 add support for the LEAST function (#2360) 2016-12-31 22:37:43 +08:00
42dd3c8759 expression: fix shadow warning (#2354) 2016-12-30 11:56:14 +08:00
c99cdaaa30 *: parser support crc32 conv bit_xor (#2347)
*: parser support crc32 conv bit_xor
2016-12-29 20:49:12 +08:00
7d9944f01c *: add builtin func interface. (#2344) 2016-12-29 19:41:46 +08:00
a28ab3eb73 *: add GetArgs interface (#2343) 2016-12-29 19:10:01 +08:00
7c87b92468 *: Use standard error code/message for incorrect function argument count error (#2335)
* *: Use standard error code/message for incorrect fuction argument count
error
2016-12-28 14:57:39 +08:00
5f96f67cbc *: change schema from []*Column to struct (#2321) 2016-12-27 14:02:19 +08:00
453a95ce8c *: merge packages of evaluator and expression. (#2322) 2016-12-26 12:35:29 +08:00
26e5c0c867 *: move evaluator's helper to expression package. (#2291) 2016-12-23 11:34:52 +08:00
a89fa8a8d3 *: refact insert logic (#2252) 2016-12-20 17:38:23 +08:00
507201bd12 plan, expression: add test and remove useless code (#2271)
* plan: add test for logical_plan_builder

* plan: add test in logical_plan_test

* plan: add test and remove useless code

* plan, expression: move test from plan to expression

Move test for constantFolding and constantPropagation from
plan to expression

* plan: remove useless test

* expression: add test

* expression: address comment
2016-12-19 14:04:00 +08:00
35edefb757 *: rewrite the logic of set. (#2223) 2016-12-12 17:54:16 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
0b828d46f8 *: add context in baseplan, extract constant folder. (#2135) 2016-12-01 00:17:55 +08:00
5230f5eabd variable: define StatementContext. (#2121)
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
f0db619009 *: refactor constant propagation. (#2087) 2016-11-27 16:21:12 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
3683d5f950 plan & expression: split the logic of column pruning and indices resolving. (#2051) 2016-11-23 18:01:27 +08:00
7e041d2cba expression: let first_row get the first value no matter if it's null (#2057) 2016-11-22 16:07:14 +08:00
fdb74960a4 add a new expression type: Correlated Column. (#1973) 2016-11-17 12:42:12 +08:00
e17644716d refactor show clause. (#1940) 2016-11-10 11:14:37 +08:00