Commit Graph

36 Commits

Author SHA1 Message Date
75a031af4a expression: check NotNullFlag of columns when simplifying binary operations (#24049) 2021-04-15 23:03:53 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
f687ebd91c planner: fix correlated aggregates which should be evaluated in outer query (#21431) 2020-12-18 14:51:35 +08:00
bb675c0d63 types: check KindNull / KindMinNotNull / KindMaxValue when comparing datums (#19259)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 16:47:52 +08:00
b98c88c948 infoschema/executor: support field expression in show index and related infoschema (#14400) 2020-02-20 19:04:48 +08:00
74bc00dfa9 Improve the performance of WindowExec by using multi-thread hash grouping (#14238) 2020-01-16 21:04:16 +08:00
c796205825 planner: fix bug for logical rule outer join elimination (#13947) 2019-12-10 15:56:26 +08:00
96d4b1fe3c planner: display cop tasks when explain format is "dot" (#12225) 2019-09-18 14:19:45 +08:00
39f83c1220 planner: support predicate pushdown for Window (#11915) 2019-08-29 14:23:36 +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
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
0106361cd9 expression: let PushDownNot does not change the argument (#10363) 2019-05-06 16:22:19 +08:00
8800ec195a plan: push down constant filters over join properly (#9848) 2019-04-04 15:50:32 +08:00
4454461609 planner: fix point get with PK and UK (#9737) 2019-03-15 12:54:29 +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
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