Commit Graph

63 Commits

Author SHA1 Message Date
199eb8e6c1 core: support left join and right join for join reorder (#23149)
close pingcap/tidb#19940
2022-05-10 23:24:35 +08:00
493eb45c75 *: table partition dynamic prune mode with Physical Table ID from unistore (#31634)
close pingcap/tidb#29851
2022-03-04 01:21:46 +08:00
4e33a0f2eb expression: refine invalid char error msg for string conversion (#32199)
close pingcap/tidb#30444
2022-02-09 19:25:36 +08:00
df58e6c36c execution: refine precision of cast as decimal in agg func (#30805) 2021-12-23 16:53:47 +08:00
3d267514d5 expression: cast charset according to the function's resulting charset (#29905) 2021-11-24 17:07:50 +08:00
afca7649fa planner: refine prefer-range-scan behavior (#27123) 2021-09-02 12:06:14 +08:00
4d5773c298 planner: fix the issue that UnionScan returns wrong results in dynamic mode (#26876) 2021-08-04 14:47:07 +08:00
dd5546dfd0 Revert "planner: fix the issue that UnionScan returns wrong results in dynamic mode" (#26853) 2021-08-03 19:21:06 +08:00
2745baad11 planner: fix the issue that UnionScan returns wrong results in dynamic mode (#26755) 2021-08-03 16:37:07 +08:00
dbb753fd02 executor: create PipelinedWindowExec (#23022) 2021-06-03 15:38:27 +08:00
28c3748496 planner: remove some risky cache operations in the plan builder (#23354) 2021-03-18 15:35:11 +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
d44e123395 planner: prevent agg push down if it is in the outer child of apply (#21902) 2020-12-22 16:43:26 +08:00
32d8cad845 server: double type column from table should ignore its decimal (#21788)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-22 11:27:02 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +08:00
a55a51a163 executor: fix show create table int default value (#20462) 2020-10-28 14:08:37 +08:00
8f6d120586 planner: fix wrong behavior for != any() (#20058) 2020-09-17 16:19:42 +08:00
3ac0baf61c *: fix unable prune problem caused by mismatch column infos (#19391) 2020-08-25 12:24:48 +08:00
3df573d2fc planner,executor: use new table partition implementation and fix CI (#18981) 2020-08-06 17:50:40 +08:00
777907bcee planner: push agg below partition union all by default (#17262) 2020-05-28 18:11:13 +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
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
6702d95fc0 planner: prune columns again after predicate push down (#14683) 2020-02-12 18:13:18 +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
aca3f47292 *: Refactoring reading logic of virtual generate column (#12407) 2019-11-13 17:39:53 +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
6fd74f3e4c planner: support cost model for tiflash table scan (#12868) 2019-10-29 16:05:51 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +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
1342cba5fe planner: set windowClause only in WindowFuncExpr (#11956)
* fix window

* tweak

* move test

* use filelist

* add explain test

* fix test

* fix

* fix

* fix test
2019-09-25 16:00:17 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
2307338ae7 planner: generate index path as candidate when it is a single scan (#12022) 2019-09-09 19:13:41 +08:00
7372dcd6d2 Planner:eliminate redundant projection (#11920) 2019-09-02 20:16:35 +08:00
dc1f8ff031 planner: don't prune sleep function in LogicalProjection (#11927) 2019-08-30 16:35:06 +08:00
90f3148ba5 planner: eliminate top level Sort in subquery (#11935) 2019-08-30 11:01:48 +09:00
c59933323a expression: fix constItem() and column-pruning in order by clause (#11839) 2019-08-28 16:59:35 +08:00
0ff5b50c15 planner: remove unnecessary first_row() functions (#11723) 2019-08-23 14:02:40 +08:00
fe038642e5 *: refactor cost model formulas and constants (#10581) 2019-08-07 17:44:09 +08:00
b97c0434db executor: show CARTESIAN Join explicitly in the results of Explain (#11415) 2019-07-24 16:57:51 +08:00