Commit Graph

200 Commits

Author SHA1 Message Date
2a155f4eaf planner: use ExtraHandleColumn as PK when generating TablePath (#11959)
* use ExtraHandleColumn as PK

* fix fmt

* move unittest to explaintest
2019-09-02 17:03:06 +08:00
b239f2f04d planner: split avg to count and sum for TableReader cop task (#11926) 2019-09-02 16:16:05 +08:00
dc1f8ff031 planner: don't prune sleep function in LogicalProjection (#11927) 2019-08-30 16:35:06 +08:00
fc739762c3 executor: refine the usage of expression blacklist (#11940) 2019-08-30 13:29:22 +08:00
90f3148ba5 planner: eliminate top level Sort in subquery (#11935) 2019-08-30 11:01:48 +09:00
39f83c1220 planner: support predicate pushdown for Window (#11915) 2019-08-29 14:23:36 +08:00
c59933323a expression: fix constItem() and column-pruning in order by clause (#11839) 2019-08-28 16:59:35 +08:00
cc04cd9e3c planner: add index optimizer hint (#11746) 2019-08-23 18:27:46 +08:00
0ff5b50c15 planner: remove unnecessary first_row() functions (#11723) 2019-08-23 14:02:40 +08:00
bd33771efa planner: fix incorrect table name in explain information (#11780) 2019-08-20 10:32:18 +08:00
69c0c3b1e8 Planner: Avoid injecting redundant projection below LogicalJoin (#11662) 2019-08-19 10:55:46 +08:00
2009741d57 planner: increase default concurrency factor of cost computing (#11752) 2019-08-16 17:37:16 +08:00
8a161721f1 planner, expression: remove TblID2Handle from Schema (#11152) 2019-08-16 13:02:16 +08:00
103cbcd5c5 planner: rewrite in as eq when the rhs list has only one item 2019-08-16 11:07:59 +08:00
9f01c7b497 ddl: handle index key type in CreateIndex 2019-08-16 00:00:29 +08:00
e08e9391dd planner: "for update" should not work in a single autocommit statement (#11715) 2019-08-13 19:30:27 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
4995fe741e planner/core: check the window func arg first before checking window specs (#11613) 2019-08-10 16:22:45 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
a530f87db7 planner: add aggregation hints TIDB_HASHAGG and TIDB_STREAMAGG (#11364) 2019-08-07 10:51:34 +08:00
829ba98907 expression: remove the NotNullFlag for aggregation func MAX/MIN when inferring type (#11343) 2019-08-05 17:41:40 +08:00
03bb8d7818 stats: convert small range to points in selectivity (#11524) 2019-08-05 10:45:51 +08:00
b17848b880 stats: fix estimation for time equal conditions (#11511) 2019-07-29 19:56:50 +08:00
b97c0434db executor: show CARTESIAN Join explicitly in the results of Explain (#11415) 2019-07-24 16:57:51 +08:00
f8912049f5 *:add opt_rule_blacklist in mysql tables. (#11096) 2019-07-24 13:36:29 +08:00
3a1ba358a4 planner: fix bugs and make it more effective in outer join eli… (#11160) 2019-07-23 13:13:05 +08:00
3847ec8466 planner: fix a corner case in column pruning rule (#10974) 2019-07-01 12:52:55 +08:00
0d984d8ffc executor: locks key in point get executor for pessimistic transaction (#10972) 2019-06-28 14:06:43 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
04cd877967 session, sessionctx: add unit test for sessionctx, session (#10763) 2019-06-18 15:09:13 +08:00
fbf58fc9b5 planner: fix wrong selectivity for inner selection in index join (#10633) 2019-06-12 12:50:14 +08:00
3760c63dab planner: propagate more possible props to enlarge search space (#10548) 2019-06-10 17:48:53 +08:00
b83e333871 planner, cmd: correct the behavior of IndexJoin hint for SemiJoin (#10583) 2019-05-23 23:25:18 -07:00
54899f66f6 parser: support LOAD DATA ... IGNORE/REPLACE (#10336) 2019-05-22 17:03:29 +08:00
2d70e4da27 cmd/ddltest: fix build using 'go test -c' (#10535) 2019-05-20 12:54:37 +08:00
f100cddbf7 cmd: move ddltest from tidb-test (#9052) 2019-05-16 10:23:39 +08:00
480c605ae0 cmd/importer: support probability in building incremental column (#10454) 2019-05-15 13:32:14 +08:00
7690a7fe88 cmd/importer: support incremental columns (#10434) 2019-05-14 11:14:45 +08:00
9b74130e49 cmd: add more explaintests for generated columns (#10373) 2019-05-08 17:23:15 +08:00
0106361cd9 expression: let PushDownNot does not change the argument (#10363) 2019-05-06 16:22:19 +08:00
efe9b6ab2a planner/core: fix privilege check for update (#10281) 2019-04-30 13:06:54 +08:00
9d74d6404f planner, executor: index join enhancement (#8471) 2019-04-29 11:07:15 +08:00
f9c82b531c plan: improve row count estimation using column order correlation (#9839) 2019-04-24 16:19:21 +08:00
8ec262c9b7 cmd/pluginpkg: support relative path (#10205) 2019-04-22 12:24:30 +08:00
11d7199fcf fix pluginpkg.go typo (#10202) 2019-04-20 10:36:26 +08:00
e5f734e54c *: move the Handle of stats to single package. (#10149) 2019-04-17 13:42:34 +08:00
7666f688b3 *: add stats version in slow_query and slow log. (#10082) 2019-04-15 18:04:48 +08:00
175bae45e1 planer: tiny refine code to return as early as possible In convertToIndexScan and convertToTableScan. (#10058) 2019-04-12 13:49:13 +08:00
8800ec195a plan: push down constant filters over join properly (#9848) 2019-04-04 15:50:32 +08:00