Commit Graph

226 Commits

Author SHA1 Message Date
ed070c496a planner: don't regenarate the same group by column when decorrelation (#12943) 2019-10-31 17:02:13 +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
e1ba309148 executor: make IndexHashJoin support keeping the outer order (#12349) 2019-10-17 14:48:24 +08:00
ae811b91c9 planner: fix constant propagation for AntiSemiJoin (#12728) 2019-10-17 11:03:48 +08:00
63d1b1d0a3 planner: do not convert filter to range for table scan with tiflash (#12682) 2019-10-14 16:11:33 +08:00
45bc789a0f planner: stream agg should not be pushed to double read (#12443)
For the following two reason, we should not push stream agg down to double read
- The aggregate will lost the handle information
- There's no sort operator. The second read is ordered with pk, not by index.
2019-10-12 19:22:04 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
003a7dfb67 planner: fix bug the inner child can't keep order in index join (#12614) 2019-10-11 14:44:33 +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
1fe9773726 planner: introduce an individual physical plan for indexNestedLoopHashJoin (#12139) 2019-09-24 21:18:45 +08:00
8179558274 planner, executor: push limit down into IndexLookUpReader executor (#12262) 2019-09-24 14:16:16 +08:00
e086686ede *: tidy code,make code more go style. (#12300) 2019-09-23 21:24:10 +08:00
3eaa4d3012 planner: tiny code refine for contructIndexJoin (#12254) 2019-09-23 11:58:45 +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
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +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
f2adf1df53 planner: improve row count estimation of IndexJoin's inner scan (#12085) 2019-09-11 17:10:46 +08:00
2307338ae7 planner: generate index path as candidate when it is a single scan (#12022) 2019-09-09 19:13:41 +08:00
bb5bfa4bd7 planner: consider agg func type in cost model (#12038) 2019-09-09 17:44:41 +08:00
e0b8267d95 planner: use *expression.Column instead of *IndexColumn (#11894) 2019-09-05 15:24:33 +08:00
845061351d planner: support index_lookup_merge_join in physical plan. (#11338) 2019-09-04 13:46:05 +08:00
7372dcd6d2 Planner:eliminate redundant projection (#11920) 2019-09-02 20:16:35 +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
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