Commit Graph

18 Commits

Author SHA1 Message Date
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
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
177c155161 plan: exclude IsNull from constant propagation (#7835) 2018-10-08 14:47:13 +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
9f25032666 plan: fix predicate push down for UnionScan (#7695) 2018-09-17 14:44:53 +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
ec8fb0d38c *: refine IntColumn <cmp> NonIntConstant (#7108) 2018-07-26 09:40:47 +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