Commit Graph

190 Commits

Author SHA1 Message Date
f2163e7df1 Optimizer: Add partition by support for derived TopN(filter on row_nu… (#41469)
ref pingcap/tidb#39792
2023-02-23 17:23:06 +08:00
741ac51d0d planner: enable tiflash path for generated col in disaggregated tiflash mode (#41359)
close pingcap/tidb#41360
2023-02-22 10:57:06 +08:00
4ccce9c526 planner, expression: support multi-distinct agg under MPP mode (#39973) 2023-02-20 19:07:20 +08:00
60dda6976e planner: support push part of limit prop to IndexMerge (#41054)
ref pingcap/tidb#41028
2023-02-20 02:39:04 +08:00
d2d91b5d96 planner: add more checks when pushing TopN down (#41370)
close pingcap/tidb#41355
2023-02-16 01:38:01 +08:00
288c2dd490 planner: fix a bug when pushing streamAgg down (#41056)
close pingcap/tidb#40857
2023-02-12 12:00:00 +08:00
a4158c2219 planner: adjust estimated row count when pushing Limit and keep order for partitioned table (#41103)
close pingcap/tidb#40986
2023-02-09 21:26:09 +08:00
f1a744a3e6 planner: add MppVersion for mpp task; support data compression in Exchange Operator; (#40132)
ref pingcap/tiflash#6620, close pingcap/tidb#40494
2023-02-02 11:11:56 +08:00
05edfd4a7d planner: fix HashAgg cannot pushdown to tiflash_compute (#40828)
close pingcap/tidb#40717
2023-01-31 16:17:54 +08:00
45e85d9bd4 planner: disable plan-cache for plans with IndexMerge accessing Multi-Valued Index (#40646)
ref pingcap/tidb#40191
2023-01-17 15:17:48 +08:00
0f838d9a67 planner, executor: split the range for unsigned pk of partition table when limit is used (#40313)
close pingcap/tidb#40309
2023-01-09 18:36:22 +08:00
6ae151a9bc planner: open the partial order prop push down for LIST PARTITION (#40290)
close pingcap/tidb#40273
2023-01-04 17:24:20 +08:00
b94042c0b5 planner: refine planner code for disaggregated tiflash mode (#39813)
close pingcap/tidb#39814
2022-12-29 22:02:20 +08:00
017901d1d6 *: extend skyline pruning diagnostic info and add extra warnings (#39894)
ref pingcap/tidb#39893
2022-12-20 18:00:55 +08:00
4c04abce79 *: support disaggregated tiflash (#33535)
close pingcap/tidb#34707
2022-12-09 00:44:04 +08:00
38b0ab7333 planner: prohibit StreamAgg with group keys for TiFlash (#39547)
close pingcap/tidb#39266
2022-12-02 05:10:00 +08:00
9a7341eb43 executor: add tests for property pushed down for partition table (#39530)
ref pingcap/tidb#26166
2022-12-02 01:54:02 +08:00
f9a6e47192 planner: support push part of order property down to the partition table (#36108)
ref pingcap/tidb#26166
2022-11-29 13:51:59 +08:00
dd0a479b1a planner, parser: add basic preparations for intersection type IndexMerge (#39396)
ref pingcap/tidb#39335
2022-11-25 19:37:59 +08:00
ce62915289 planner: update the scan-row-size calculation formula in model2 (#38968)
ref pingcap/tidb#35240
2022-11-09 10:55:50 +08:00
acf1dcf696 planner: supply Task memory usage and correct some accumulation (#38638)
ref pingcap/tidb#37632
2022-11-02 12:03:59 +08:00
e3a19d81d8 planner: fix for single DQA mode issue (#37912)
close pingcap/tidb#37913
2022-09-19 10:23:00 +08:00
efc07201e3 planner: support 3 stage aggregation for single scalar distinct agg (#37203)
close pingcap/tidb#37202
2022-09-17 13:36:59 +08:00
b5ab19c098 planner: remove old useless interfaces about cost model (#37801)
ref pingcap/tidb#35240
2022-09-15 15:47:00 +08:00
e0da196b41 planner: support HashJoin cost detail (#37012)
ref pingcap/tidb#36962
2022-08-22 15:48:20 +08:00
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
beee5f314c *: fix revive in the planner (#36249) 2022-07-27 11:39:11 +08:00
a33d971add planner: costs of Selection operators from DataSources are not accumulated (#36244)
close pingcap/tidb#36243
2022-07-15 23:05:05 +08:00
b71a23ba47 *: support coprocessor cache for paging protocol (#35787)
close pingcap/tidb#35786
2022-07-01 18:32:39 +08:00
d99b358225 *: only add default value for final aggregation to fix the aggregate push down (partition) union case (#35443)
close pingcap/tidb#35295
2022-06-28 12:08:39 +08:00
3f8df8c389 Revert "planner: fix the wrong cost formula of MPPExchanger" (#35707)
ref pingcap/tidb#35240
2022-06-24 14:22:38 +08:00
8d589d2c7c planner: new cost formula for IndexJoin (#35671)
ref pingcap/tidb#35240
2022-06-24 10:38:37 +08:00
56d004e2ea planner: introduce new cost formula for MPPJoins (#35643)
ref pingcap/tidb#35240
2022-06-22 19:58:37 +08:00
97ac647785 planner: introduce new cost formula for MPPAggs (#35436)
ref pingcap/tidb#35240
2022-06-21 23:02:37 +08:00
9a77892ac8 execution: avoid decimal overflow and check valid (#34399)
close pingcap/tidb#30347, close pingcap/tidb#34388
2022-06-17 21:42:36 +08:00
d3b79de20b planner: fix the wrong cost formula of MPPExchanger (#35438)
ref pingcap/tidb#35240
2022-06-17 13:26:35 +08:00
c8fcad4d82 planner: refactor to use the standard function GetXXFactor() to get cost model factors (#35226)
ref pingcap/tidb#33945
2022-06-08 16:10:30 +08:00
9b1ef7815a planner: reset PhysicalWindow's schema for mpp plan. (#34764)
* fix

* add failpoint

* add test

* sort import

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-05-18 15:00:34 +08:00
1c6dcf0913 planner: support push window function down to tiflash (#31601)
Issue Number: close #33072
2022-05-13 14:12:28 +08:00
12ee8f2cc8 planner: add more test cases for the new cost implementation (#34575)
ref pingcap/tidb#33945
2022-05-12 17:44:35 +08:00
1d2a0b998d planner: introduce a flag to cost calculation to control some behaviors (#34499)
ref pingcap/tidb#33945
2022-05-10 14:56:33 +08:00
53a3923358 planner: add more rand-gen test cases for the new cost implementation (#34486)
ref pingcap/tidb#33945
2022-05-10 11:16:34 +08:00
cf5ad49561 planner: add enforce-mpp test cases for the new cost implementation (#34446)
ref pingcap/tidb#33945
2022-05-07 15:48:32 +08:00
1af12c2345 planner: refactor the cost implementation for TiFlash plans (#34338) 2022-05-07 14:08:08 +08:00
2f8e52f9b1 planner: move all functions about cost calculation to plan_cost.go (#34408)
ref pingcap/tidb#33945
2022-05-06 15:08:56 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
d22cd59da4 planner: refactor the cost implementation for Aggs (#34227) 2022-04-27 20:12:39 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
99b871e20d planner: add projection pushdown (#27029)
close pingcap/tidb#26242
2022-04-22 11:06:05 +08:00