Commit Graph

83 Commits

Author SHA1 Message Date
ae106f2e3b executor: support IndexMergeReaderExecutor (#12305) 2019-12-31 15:30:58 +08:00
fe764a97a3 *: only add union scan when dirty table is not empty (#14265) 2019-12-31 13:20:27 +08:00
08be35d778 planner: fix wrong stats for physical union scan (#14093) 2019-12-19 10:37:16 +08:00
9b7b2c0d50 planner/core: fix bug when using generated column in aggregate statement (#14111) 2019-12-18 14:46:47 +08:00
493c07c439 planner: correct row count estimation for inner child of index join (#13726) 2019-12-12 17:06:05 +08:00
c796205825 planner: fix bug for logical rule outer join elimination (#13947) 2019-12-10 15:56:26 +08:00
de862fc620 planner: do not push keep descending order to tiflash (#13572) 2019-12-02 13:44:28 +08:00
596fb64233 planner: support a hint to force using a IndexMerge path (#12843) 2019-11-27 15:44:25 +08:00
aca3f47292 *: Refactoring reading logic of virtual generate column (#12407) 2019-11-13 17:39:53 +08:00
ed070c496a planner: don't regenarate the same group by column when decorrelation (#12943) 2019-10-31 17:02:13 +08:00
63d1b1d0a3 planner: do not convert filter to range for table scan with tiflash (#12682) 2019-10-14 16:11:33 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
1342cba5fe planner: set windowClause only in WindowFuncExpr (#11956)
* fix window

* tweak

* move test

* use filelist

* add explain test

* fix test

* fix

* fix

* fix test
2019-09-25 16:00:17 +08:00
8261a41223 planner: make every plan explainable (#12183) 2019-09-18 22:49:07 +08:00
da6a7bdcab planner: explain a physicalPlan with IndexMerge in "dot" format (#12248) 2019-09-18 16:06:15 +08:00
96d4b1fe3c planner: display cop tasks when explain format is "dot" (#12225) 2019-09-18 14:19:45 +08:00
65edb2d83d planner: generate physical plan for IndexMergePath (#11245) 2019-09-12 14:06:45 +08:00
836d5f7b58 planner/core: support generate hints from physical plan (#11936) 2019-09-11 17:53:29 +08:00
2307338ae7 planner: generate index path as candidate when it is a single scan (#12022) 2019-09-09 19:13:41 +08:00
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
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
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
2009741d57 planner: increase default concurrency factor of cost computing (#11752) 2019-08-16 17:37: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
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +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
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
b83e333871 planner, cmd: correct the behavior of IndexJoin hint for SemiJoin (#10583) 2019-05-23 23:25:18 -07: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
f9c82b531c plan: improve row count estimation using column order correlation (#9839) 2019-04-24 16:19:21 +08:00
8800ec195a plan: push down constant filters over join properly (#9848) 2019-04-04 15:50:32 +08:00
4c91f53e1f planner: do not eliminate group_concat in aggregate elimination (#9967) 2019-04-01 12:21:19 +08:00
e829920934 planner: fix plus prefix for select constant (#9707) 2019-03-21 10:51:59 +08:00
0b28f30cfd planner: improve row count estimation for index range containing correlated columns (#9738) 2019-03-19 15:38:59 +08:00
4454461609 planner: fix point get with PK and UK (#9737) 2019-03-15 12:54:29 +08:00
7f27f7daba planner, executor: set new child after injecting Project operator (#9684) 2019-03-13 14:19:32 +08:00
0bec639074 planner: correct ExpectedCnt for children plans of join (#9497) 2019-03-11 15:08:02 +08:00
85c4553c4e planner: chose outer table based on cost when both tables are specified in TIDB_INLJ (#9579) 2019-03-08 13:25:44 +08:00
0267a7fbdf ddl: validate fsp for datetime/timestamp if they are used as defaultvalue of datetime/timestamp columns (#9327) 2019-03-04 11:19:11 +08:00
5a283a98dd plan/executor: make semi joins null and empty aware (#9051) 2019-02-25 15:42:38 +08:00
f105b710ca planner: remove correlated column sort items (#9435) 2019-02-25 14:48:44 +08:00
38a453d29c expression: should not pass nil pointer to HashCode() function (#9324) 2019-02-21 21:18:03 +08:00
7c0a9a7c57 add integration tests for access path selection (#9212) 2019-02-18 19:08:24 +08:00