Commit Graph

40 Commits

Author SHA1 Message Date
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
c468f02bb0 planner: remove constant sort items after substitution (#9333) 2019-02-18 10:57:35 +08:00
18ff4f953e planner/core: refine explain for window function (#9270) 2019-02-13 15:23:00 +08:00
9bdba3a5d1 plan: handle DNF expressions in Selectivity (#9282) 2019-02-13 10:53:12 +08:00
e1667966ac planner: fix assertion failure on LogicalJoin.EqualConditions (#9066) 2019-02-11 11:45:15 +08:00
776c90fa79 planner: check null and empty for != any(subq) and = all(subq) (#9106) 2019-01-21 16:17:48 +08:00
3c98f69266 *: support select partition for partition table (#8990) 2019-01-14 20:55:52 +08:00
431c884721 cmd/explaintest: tiny change to make it stable (#8740) 2018-12-19 10:40:15 +08:00
6a99fa25d7 executor: fix union dual table order by but not sort (#8251) 2018-11-13 15:27:18 +08:00
19c01f40e0 planner: fix error caused by different length between inner and outer OrderByItems (#8273) 2018-11-13 11:17:32 +08:00
cd5ffb3b32 planner: support join elimination rule (#8021) 2018-11-09 21:31:29 +08:00
60d05bd759 planner: eliminate ifnull in expression rewriting process (#7996) 2018-11-02 12:50:27 +08:00
696ef7bae2 plan: convert in subquery to agg and inner join (#7531) 2018-10-30 19:19:32 +08:00
a4cff40a18 support _tidb_rowid for table scan range (#8047) 2018-10-25 20:35:45 +08:00
19f56480d5 explaintest: add explain test for partition pruning (#7505) 2018-10-18 18:55:22 +08:00
6e525f9e62 planner: eliminate if null on non null column (#7924) 2018-10-17 22:20:32 +08:00
d60a1a227b plan: build anti semi join for NOT EXISTS (#7842) 2018-10-09 16:57:15 +08:00
f33e04f486 expression: make sysdate unfoldable (#7838) 2018-10-08 16:47:45 +08:00
177c155161 plan: exclude IsNull from constant propagation (#7835) 2018-10-08 14:47:13 +08:00
869e20138a plan: refine the handle check to use point get plan for prepare statement (#7732) 2018-09-25 11:32:12 +08:00
7b4686d8c2 expression, plan: aggressive constant fold for null parameter expression to simplify outer join (#7696) 2018-09-23 19:46:52 +08:00
b30dbd06ac plan: support limit/group-by/order-by clauses in point get (#7720) 2018-09-17 21:18:44 +08:00
9f25032666 plan: fix predicate push down for UnionScan (#7695) 2018-09-17 14:44:53 +08:00
7f6babb2b4 plan: fix mistaken conversion from outer join to inner join (#7689)
exclude upper level join conditions from predicates when simplifying
embedded outer join
2018-09-17 13:39:15 +08:00
d7d13091da ranger: merge multiple EQ or In expressions if possible (#7577)
Convert empty range scan to TableDual after expression merge.
2018-09-10 17:46:37 +08:00
e907bfc3a7 plan: fix a bug in index join (#7150) 2018-07-30 16:54:11 +08:00
ec8fb0d38c *: refine IntColumn <cmp> NonIntConstant (#7108) 2018-07-26 09:40:47 +08:00
372a6fc921 plan: refine explain result format (#7011) 2018-07-09 13:55:36 +08:00
6a931e55dc plan: remove other accessPaths if one is unique key and full matched. (#6925) 2018-06-29 14:32:26 +08:00
c5524cb238 plan, executor: use CorrelatedColumn to calculate range. (#6779) 2018-06-28 16:23:05 +08:00
db4888a697 plan, parser: fix the wrong result of the UNION statement (#6752)
tidb diff result with mysql when mix use union and union-all fix #6731
- rename `selectStmt.UnionDistinct` to `selectStmt.IsAfterUnionDistinct`
- add explain test
- remove useless `unionStmt.Distinct` and `selectList.Distinct`
- refactor use golang slice, remove dup code
- return WrongNumColumnInSelect error and add test case
2018-06-07 17:08:26 +08:00
66c41128ca expression: improve constant folding of UDF if & ifnull (#6677) 2018-06-07 11:38:57 +08:00
33b2a7abbf plan: fix row count estimation for limit (#6679) 2018-05-29 20:17:14 +08:00
0b1b523a81 *:move explain_test to tidb repository (#6555) 2018-05-17 23:55:15 +08:00