Commit Graph

75 Commits

Author SHA1 Message Date
5ea64e6e23 expression: change date add function return type (#28133)
close pingcap/tidb#27573
2021-12-31 19:01:51 +08:00
7f85091696 expression: pushdown substring/char_length to tikv (#30191)
close pingcap/tidb#31125
2021-12-31 00:07:50 +08:00
df58e6c36c execution: refine precision of cast as decimal in agg func (#30805) 2021-12-23 16:53:47 +08:00
28c3748496 planner: remove some risky cache operations in the plan builder (#23354) 2021-03-18 15:35:11 +08:00
9f7ed0f44a planner: push aggregation operators down to projection by default (#22090) 2021-03-17 16:20:56 +08:00
5bafb3203e planner: show cast type in EXPLAIN in coptask (#23123) 2021-03-16 16:16:55 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
c9e85ec701 expression: refine performance of EXTRACT function (#22701) 2021-02-19 15:31:27 +08:00
857e3da6eb planner: join reorder should not change the order of output columns (#16852) 2020-12-31 14:51:14 +08:00
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
f687ebd91c planner: fix correlated aggregates which should be evaluated in outer query (#21431) 2020-12-18 14:51:35 +08:00
fd587c3552 session: add a switch for index merge join (#21830)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-18 11:05:05 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +08:00
38bbb0dd21 planner: ban (index) merge join heuristically when convert eq cond to other cond (#21138) 2020-11-19 17:17:53 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +08:00
ff428983e0 planner: estimate cardinality of agg / join by GroupNDV (#18058) 2020-10-27 11:09:57 +08:00
b78f4896fe statistics, util/ranger: improve selectivity calculation for DNF filters (#18741) 2020-08-27 15:40:12 +08:00
daad2699dd *: support clustered index for index join (#18204) 2020-07-01 16:15:51 +08:00
e8779717d9 planner, expression: Remove the default asc order in explain result (#17074) 2020-05-14 17:38:19 +08:00
4eb9ca3d3f planner: push aggregation functions with distinct to cop (#15500) 2020-04-01 20:49:14 +08:00
21ee980e11 *: Refine Explain's format. (#15507) 2020-03-23 17:57:49 +08:00
a999ef6981 expression: support different expr push down for TiKV and TiFlash (#15174) 2020-03-11 16:16:03 +08:00
183a9d585a *: update explain info of outer hash joins (#15247) 2020-03-10 20:38:02 +08:00
77dcdc546d *: Clear the name of some field in explain result. (#14958) 2020-03-02 17:43:22 +08:00
6d00e2169b planner: enable inline projection for hash join (#14783) 2020-02-28 16:28:10 +08:00
236352e98f *: show build and probe side for join and index lookup related operators in explain result (#14838) 2020-02-26 17:12:09 +08:00
dbcf5fbcc8 planner: show cast type in EXPLAIN (#14942) 2020-02-26 16:36:35 +08:00
3399f4be31 planner: distinguish FullScan and the RangeScan in explain/desc info (#14696) 2020-02-24 15:23:06 +08:00
a8415541f7 planner: refine Cardinality to map (#14845) 2020-02-21 16:19:11 +08:00
6702d95fc0 planner: prune columns again after predicate push down (#14683) 2020-02-12 18:13:18 +08:00
54e3531d0b planner: TIDB_INLJ hint does not work for smaller left table (#14023) 2019-12-17 20:05:48 +08:00
493c07c439 planner: correct row count estimation for inner child of index join (#13726) 2019-12-12 17:06:05 +08:00
64da4b583f planner/cascades: implement PreparePossibleProperties in cascades planner (#13910) 2019-12-06 15:52:49 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
96069cd749 planner: reuse GroupBy Columns when build finalModeAgg (#13653) 2019-11-21 13:53:37 +08:00
889ad618cf planner: projection don't new unnecessary column (#13406) 2019-11-20 13:58:38 +08:00
4dcd7d7938 planner: consider build hashtable using the outer side for outer join during plan building (#12883) 2019-11-08 17:43:53 +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
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
1fe9773726 planner: introduce an individual physical plan for indexNestedLoopHashJoin (#12139) 2019-09-24 21:18:45 +08:00
3eaa4d3012 planner: tiny code refine for contructIndexJoin (#12254) 2019-09-23 11:58:45 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +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
845061351d planner: support index_lookup_merge_join in physical plan. (#11338) 2019-09-04 13:46:05 +08:00