Commit Graph

1204 Commits

Author SHA1 Message Date
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
76f420595b *:support aggregate function push cross outer join. (#1899) 2016-11-01 17:59:12 +08:00
d3279072b7 *: support explain aggregation query. (#1901) 2016-10-31 15:33:59 +08:00
82971c4779 plan: support aggregation push down. (#1886) 2016-10-31 01:17:21 +08:00
0d49936ef9 expression: fix a bug when checking whether two aggregation functions are same. (#1852) 2016-10-20 19:53:09 +08:00
406c5c4094 *: support common aggregation functions elimination. (#1843) 2016-10-20 15:58:34 +08:00
b8994bb139 *: Support stream aggregation. (#1735)
* *: Support stream aggregation.
2016-09-20 17:14:31 +08:00
648bee53b2 add stream agg executor. (#1730) 2016-09-18 12:49:57 +08:00
5caa0f5e29 decide push down conditions during plan building phase. (#1731) 2016-09-18 10:35:52 +08:00
b99521846f *: Make golint work and happy. (#1721) 2016-09-13 18:11:47 +08:00
6b8e1cdd0a support constant propagation (#1652) 2016-09-07 17:30:24 +08:00
f2d8b3c108 remove New*** from variable name. (#1644) 2016-08-29 10:18:45 +08:00
e33587ed47 support explain (#1632) 2016-08-26 11:19:23 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
6e878144e5 support UPDATE and DELETE in new plan (#1582) 2016-08-19 14:35:39 +08:00
acbfe2394f add arguments buffer to avoid making new slice frequently. (#1539) 2016-08-02 17:20:11 +08:00
da6ceb949b add constant folding (#1534) 2016-08-02 15:45:58 +08:00
9574322317 support join reorder. (#1522) 2016-08-01 15:57:47 +08:00
2b4acb0caf support cbo (#1498) 2016-07-27 11:10:52 +08:00
f5a6c962b5 *: Change ctx.Value from interface{} to Datum (#1494) 2016-07-25 10:42:54 +08:00
432df5458b *: aggregate related code cleanup (#1488) 2016-07-23 14:29:52 +08:00
c66576ba05 Support aggregate push down in new executor (#1483)
Support aggregate push down for NewXSeelctTableExec.
2016-07-22 13:15:41 +08:00
883021fbb4 *: tiny clean up (#1425) 2016-07-11 18:03:59 +08:00