Commit Graph

39 Commits

Author SHA1 Message Date
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
70b0a7e3d0 let update/delete do old logicOptimize (#1550) 2016-08-03 21:59:27 +08:00
b06966048e correct column names (#1548) 2016-08-03 17:27:34 +08:00
2b4acb0caf support cbo (#1498) 2016-07-27 11:10:52 +08:00
2f697eb987 support index scan. (#1440) 2016-07-13 18:16:51 +08:00
6ab4cc5877 fix a lot of bugs about agg and having. (#1395) 2016-07-06 15:49:53 +08:00
107ad9662c implement logical plan. (#1366) 2016-07-01 15:13:27 +08:00
af7f2a2e89 correct "order by", "having", "group by"s' resolving rules. (#1326)
resolve order by/ having/ group by correctly.
2016-06-22 11:58:06 +08:00
921677399e Hanfei/apply (#1318)
add apply operator.
2016-06-15 15:23:05 +08:00
c6637049ab plan: alloc plan ID in builder (#1301)
Avoid race condition.
2016-06-08 11:29:08 +08:00
a71005710f plan: merge 'optimizer/plan' and 'optimizer' into one package. (#1300) 2016-06-07 20:49:05 +08:00