Commit Graph

60 Commits

Author SHA1 Message Date
f283948ae9 plan: fix the order of schema columns (#3946) 2017-07-31 15:49:14 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
c6b4aa8fe5 plan, statistics: plan topn more precisely. (#3902) 2017-07-27 10:53:22 +08:00
9459f1d10f plan: refactor projection elimination (#3687) 2017-07-19 12:28:54 +08:00
9e6cc3a477 plan: call the prepareStats but not use it yet. (#3719) 2017-07-12 14:09:15 +08:00
4023bb88b3 plan: Clean up (#3606) 2017-07-04 00:13:08 +08:00
4c3be8a9ad *: Support retrun the error of ErrNoDB (#3572) 2017-06-29 17:41:58 +08:00
3ab3a61b5a plan: pick all possible useful indices for merge join. (#3473) 2017-06-28 17:37:47 +08:00
eac2769606 *: change the format of aggregation's result (#3483) 2017-06-21 18:19:03 +08:00
e7257d0e9d plan, executor: open the new plan switch for all test. (#3274) 2017-05-16 20:40:12 +08:00
0f246744ce plan: consider task tp in required prop. (#3257) 2017-05-15 20:58:19 +08:00
a0ecf85f9e plan, executor: let new plan resolve after physical plan building. (#3246) 2017-05-11 21:20:50 +08:00
9a9db91f63 plan: move range calculation to package ranger (#3208) 2017-05-09 02:12:39 -05:00
33c2262b9e *: assign RetType for Constant/Column (#3201) 2017-05-05 12:01:01 +08:00
05fc489229 plan: support DataSource converts to new plan. (#3045)
Support Selection and DataSource converts to new plan.
2017-04-18 17:38:44 +08:00
34aeeae5c4 plan: add push topn optimizing. (#2997)
we push topn firstly to remove the limit property from required property. It will be used in new plan builder.
2017-04-07 18:19:05 +08:00
fac3eb283b plan, executor: add logical prefix for agg, join and apply. (#2985) 2017-04-05 19:38:35 +08:00
b9deb5e7aa privilege: rename interface name from Checker to Manager (#2969) 2017-03-31 10:55:38 +08:00
6c59d520e6 *: remove stats switch. (#2846) 2017-03-16 17:11:28 +08:00
4ef03dc65f plan: remove log (#2824) 2017-03-14 19:58:45 +08:00
3efbbbfc13 plan: combine agg_prune and agg_pushdown. (#2820) 2017-03-14 14:38:28 +08:00
37977865df *: add max1row info and refine scalar subquery's decorrelation. (#2646) 2017-02-17 19:25:00 +08:00
cb1c2f0ff9 *: update privilege Checker interface and use it (#2557) 2017-02-06 11:28:06 +08:00
950583eaf8 plan, tidb-server: add a flag to control statistic info reading. (#2565)
* plan, tidb-server: add a flag to control statistic info reading.

* pass test.

* address comment
2017-01-30 11:29:43 +08:00
92208e24a3 plan: only plans that have apply will add cache. (#2564) 2017-01-26 16:07:06 +08:00
687cf0f51c plan: add opt flag. (#2542) 2017-01-26 13:04:00 +08:00
461fd98bb0 *: rename the plan interface. (#2547) 2017-01-25 15:10:44 +08:00
c6cc2f77b9 plan: remove IsCorrelated and SetCorrelated. (#2543) 2017-01-24 18:53:20 +08:00
150574bacf plan: remove aggregation grouped by unique key. (#2424) 2017-01-23 19:08:48 +08:00
f145a32063 *: refactor apply plan and executor. (#2411) 2017-01-22 11:06:17 +08:00
fce6256117 *: Clean up error trace (#2475) 2017-01-16 13:13:49 +08:00
1dd0945cf3 *: add unique key info into schema (#2376) 2017-01-06 17:36:39 +08:00
5f96f67cbc *: change schema from []*Column to struct (#2321) 2016-12-27 14:02:19 +08:00
b7a768514a plan: move some initialization out of convert2PhysicalPlan process (#2263) 2016-12-22 21:40:46 -06:00
26e5c0c867 *: move evaluator's helper to expression package. (#2291) 2016-12-23 11:34:52 +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
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
3683d5f950 plan & expression: split the logic of column pruning and indices resolving. (#2051) 2016-11-23 18:01:27 +08:00
8fa03ee0ab plan: process wildstar correctly. (#2038) 2016-11-20 21:02:29 +08:00
eafda5ee61 plan: remove old validator logic (#2013) 2016-11-18 13:24:20 +08:00
d6f99cc912 plan: move projection elimination to physical optimizing phase. (#1917) 2016-11-01 19:57:19 +08:00
82971c4779 plan: support aggregation push down. (#1886) 2016-10-31 01:17:21 +08:00
1fad7632f5 fix ci 2016-10-28 18:49:46 +08:00
1481e85129 *: add a flag to restrict cartesian product. 2016-10-28 18:38:27 +08:00
b2bf4f5504 support projection elimination (#1740) 2016-10-09 12:32:59 +08:00
a33240d8a8 parser: set flag in parse function. (#1799)
Every `ast.Statement` needs to set flag before use, set the flag in parse function,
so we don't need to set it somewhere else and won't forget to do it.
2016-10-09 11:36:56 +08:00
471731b04e plan: consider limit during building physcial plan. (#1760)
Consider limit in CBO framework.
2016-09-26 21:53:17 +08:00
b8994bb139 *: Support stream aggregation. (#1735)
* *: Support stream aggregation.
2016-09-20 17:14:31 +08:00
e4ac5301ce remove useless code. (#1609) 2016-08-20 16:00:20 +08:00
6e878144e5 support UPDATE and DELETE in new plan (#1582) 2016-08-19 14:35:39 +08:00