Commit Graph

15 Commits

Author SHA1 Message Date
bc0e70dc5c planner/core: implement skyline pruning (#9337) 2019-02-19 11:19:30 +08:00
09a5c8028e plan: derive col is not null from col op col conditions (#8603)
Check whether the `op` condition is null rejected, if yes, derive
`col is not null` for both sides of inner join, and for inner side
of outer join.

Also, remove duplicate conditions before pushing them down. Check
if the condition is mutable before removing duplicates.

For AntiSemiJoin, AntiLeftOuterSemiJoin and LeftOuterSemiJoin, do
not generate new `is not null` conditions.
2019-01-30 10:53:46 +08:00
dca815c1c5 expression: return error when doing ResolveIndices (#8929) 2019-01-15 14:34:06 +08:00
243120c473 planner, executor: add post-process after physical plan optimization and move buildProjBelowAgg from executor to planner (#8828) 2019-01-03 16:26:59 +08:00
431c884721 cmd/explaintest: tiny change to make it stable (#8740) 2018-12-19 10:40:15 +08:00
6bd8bddb12 planner/core: simple greedy join reorder based on CBO (#8394) 2018-12-07 16:34:19 +08:00
56713821ff plan: fix a problem caused by union's schema (#7680)
Before this commit. Union use the schema of its `Children[0]`.
The `Columns` information is correct.
But the `unique key information` is not, obviously.
2018-09-20 19:36:14 +08:00
e907bfc3a7 plan: fix a bug in index join (#7150) 2018-07-30 16:54:11 +08:00
1bf3f3d407 ranger: refine explain format, again (#7041) 2018-07-17 16:47:44 +08:00
372a6fc921 plan: refine explain result format (#7011) 2018-07-09 13:55:36 +08:00
a7819c3385 plan: draw relation bewteen operators with indent (#6894) 2018-06-28 13:28:43 +08:00
5a6e739787 plan: index join can be chosen in more scenario. (#6664) 2018-06-21 13:48:38 +08:00
1082b1a0f3 plan: refine the result of EXPLAIN statement (#6755) 2018-06-07 20:13:16 +08:00
a214b754d1 plan, cmd: plan, cmd: improve the code readability of planner (#6654) 2018-05-28 13:29:54 +08:00
0b1b523a81 *:move explain_test to tidb repository (#6555) 2018-05-17 23:55:15 +08:00