Commit Graph

506 Commits

Author SHA1 Message Date
dffc5152f2 planner: freeze the output order of UPDATE's select (#13166) 2019-11-11 23:09:21 +08:00
413643e25a planner: support point get by _tidb_rowid (#13360) 2019-11-11 19:37:29 +08:00
f4ee90d06f planner: correct block offset for table as names (#12996) 2019-11-11 17:46:29 +08:00
69ff2d5e88 planner/cascades: add ImplementationRule for TopN (#13323) 2019-11-11 16:15:43 +08:00
613373e78f planner: refactor the code of buildUpdate to solve some bugs (#13208) 2019-11-11 12:50:35 +08:00
30d9957de3 planner/cascades: add transformation rule TransformLimitToTopN (#13288) 2019-11-09 11:58:42 +08:00
7c63212b07 privilege: fix REVOKE privilege check incompatibility with MySQL (#13014) 2019-11-09 11:03:14 +08:00
0022a89ead planner/cascades: implement ImplementationRule for LogicalLimit (#13056) 2019-11-08 17:50:24 +08:00
4dcd7d7938 planner: consider build hashtable using the outer side for outer join during plan building (#12883) 2019-11-08 17:43:53 +08:00
be128c6090 Revert "expression: open CAST push down switcher default (#12652)" (#13264)
This reverts commit a7854936bf6771f1716b11ab11775672de2e143c.
2019-11-08 15:52:25 +08:00
a7854936bf expression: open CAST push down switcher default (#12652)
Signed-off-by: Lonng <heng@lonng.org>
2019-11-07 20:07:16 +08:00
80939f2a47 planner: prune cop task for tiflash (#13131) 2019-11-07 13:20:32 +08:00
5fd8b4d251 executor: support innodb_lock_wait_timeout for pessimistic transaction (#13103) 2019-11-05 17:26:40 +08:00
5c5aa104d9 *: support using multiply bindings in planner (#13047) 2019-11-05 16:38:15 +08:00
5793040396 planner/cascades: add transformation rule PushSelDownAggregation (#13106) 2019-11-05 14:20:43 +08:00
96788dc5e4 planner/cascades: fix a bug when delete GroupExpr in Group (#13132) 2019-11-05 13:21:02 +08:00
f12403ef08 executor: support select for update no wait (#12775) 2019-11-04 17:01:40 +08:00
96757aabb6 planner: fix bug cost model for tiflash do not work (#13111) 2019-11-04 15:46:40 +08:00
000c1ba5db planner, session: add isolation read with engine type (#12997) 2019-11-01 15:47:12 +08:00
ed070c496a planner: don't regenarate the same group by column when decorrelation (#12943) 2019-10-31 17:02:13 +08:00
0075a46f17 planner/cascades: make DeriveStats usable in cascades planner (#13023) 2019-10-30 19:42:23 +08:00
e8294ad636 executor: try to cache executor for prepared point select (#12855) 2019-10-30 10:23:18 +08:00
953c0a618a perfschema: support query cpu/memory/mutex/block/allocs/goroutines flamegraph by SQL (#12986)
Signed-off-by: Lonng <heng@lonng.org>
2019-10-30 07:50:02 +08:00
9ed376ada2 util/admin: support admin check table on partition table (#12796) 2019-10-29 20:16:37 +08:00
2a2324c826 planner/cascades: Add transformation rule PushSelDownProjection (#12992) 2019-10-29 18:37:47 +08:00
43202b1383 expression, ranger: three optimizations to speedup some specific query's opt time (#12687) 2019-10-29 18:00:45 +08:00
6fd74f3e4c planner: support cost model for tiflash table scan (#12868) 2019-10-29 16:05:51 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
536a9c6cd7 planner/cascades: implement ImplementationRule for HashAggregation (#12935) 2019-10-29 14:57:20 +08:00
bb2e349fea bindinfo: support multiply bindings for a sql (#12851) 2019-10-29 14:40:23 +08:00
3cdea0dfdf planner/cascades: inject Projection below and above Sort (#12958) 2019-10-28 16:15:29 +08:00
44a5ffe8a0 planner: support database name in optimizer hint (#12932) 2019-10-25 19:45:18 +08:00
782f44f532 planner/cascades: Implement ImplementationRule for LogicalSort (#12850) 2019-10-25 19:07:11 +08:00
2e6a2ee478 planner, executor: support create view on union (#12595) 2019-10-24 11:30:12 +08:00
07b926d26b planner/cascades: introduce TransformationID in cascades planner (#12879) 2019-10-24 02:58:59 +08:00
d15bf25961 planner: unfold the wildcard when creating view (#11818) 2019-10-22 17:55:16 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
2595e0ad31 planner/cascades: separate cached Pattern from GetPattern() (#12746) 2019-10-21 18:48:49 +08:00
d0113f4a59 planner/cascades: implement ImplementationRule for Selection (#12257) 2019-10-21 16:29:19 +08:00
c047835df1 planner: correct unit test for outer join simplification with cast (#12782) 2019-10-17 22:27:48 +08:00
b8cd65714f *: record and print the plan in slow log. (#12179) 2019-10-17 22:13:19 +08:00
e1ba309148 executor: make IndexHashJoin support keeping the outer order (#12349) 2019-10-17 14:48:24 +08:00
740b7769b0 *: support automatically create sql baselines (#12434) 2019-10-17 14:16:48 +08:00
ae811b91c9 planner: fix constant propagation for AntiSemiJoin (#12728) 2019-10-17 11:03:48 +08:00
59942ab4cc optimizer: presolve before expr propagation, and try reducing newFunc call in pa… (#12592) 2019-10-17 10:46:18 +08:00
2f7a66f2da planner: fix wrong full range for table scan in tiflash (#12756) 2019-10-16 16:04:33 +08:00
15984f696d planner, expression: fix simplify outer join with cast (#12701) 2019-10-15 16:42:03 +08:00
4a43daa882 planner: handle single partition in IndexJoin correctly (#12581) 2019-10-15 11:26:03 +08:00
20823fbe18 *: add a system variable to control the usage of baselines (#12624) 2019-10-14 21:09:03 +08:00
e00ef3e9f6 planner/cascades: introduce preprocessing phase in cascades planner (#12649) 2019-10-14 20:07:04 +08:00