Commit Graph

130 Commits

Author SHA1 Message Date
f949e01e0b planner, expression: pushdown AggFuncMode to coprocessor (#31392)
close pingcap/tidb#30923
2022-02-11 17:49:37 +08:00
59937273c5 planner: fix projection of generate column for indexLookup task (#31684)
close pingcap/tidb#31682
2022-01-28 16:09:14 +08:00
2d522dd590 planner: Add MPPPartitionType PassThroughType to mark PassThrough Exchange. (#31766)
* fix

* add tests

* simple

* fix test

* rename collect to passthrough

* add more comments

* add more tests

* fix test

* add more tests

* rename

* try fix wtf check_dev

* add some comment

* make rh
2022-01-21 21:42:07 +08:00
ab821eb315 planner: add usage of paging copr in optimizer (#30536)
close pingcap/tidb#30578
2021-12-24 18:23:53 +08:00
7121bf0289 planner: fix index merge plan when expr cannot be pushed to tikv (#30341)
close pingcap/tidb#30200
2021-12-23 13:39:47 +08:00
ffd59ec088 planner: show accessed partition when explain mpp query over partition table (#30367) 2021-12-07 13:53:56 +08:00
9aa756336e executor: avoid sum from avg overflow (#30010) 2021-12-03 11:09:55 +08:00
a0d3f4fe54 planner: fix topn wrongly pushed to index scan side when it's a prefix index (#29778) 2021-11-15 18:01:07 +08:00
4b295081ea Planner,MPP: check whether the order-by items can be pushed down to tiflash/tikv or not (#29763) 2021-11-15 15:37:07 +08:00
f77189b973 planner, MPP: fix two bugs about group by duplicated and sort by exprs (#29363) 2021-11-04 11:41:01 +08:00
efa94595c0 *: enable golangci-lint unconvert (#28929) 2021-10-23 21:28:47 +08:00
6de68d0571 expression: add extra enum info for push down check (#28712) 2021-10-15 13:09:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
b339ca29c8 expression: aggregate the collation only if the function is needed. (#27789) 2021-09-22 13:40:45 +08:00
d1a3279b73 planner: fix can not found column bug (#28067) 2021-09-17 15:24:42 +08:00
f50dd1f24c expression: Push down group concat to TiFlash (#24778) 2021-08-30 15:44:12 +08:00
9e248d9420 planner: correctly set StatsVersion of tablePlan in copTask (#27161) 2021-08-25 18:06:04 +08:00
c5689a1d3f planner: fix row count estimation for partially pushed down selections (#25715) 2021-08-18 14:17:59 +08:00
1f8f3cc63f planner: don't push down topn to nil table plan side (#25214) 2021-08-18 10:33:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
4d9473a6c6 expression: Add missing pbcode for functions InetAton/InetNtoa/Inet6Aton/Inet6Ntoa/IsIPv4/IsIPv4Compat/IsIPv4Mapped/IsIPv6. (#26939) 2021-08-06 16:11:13 +08:00
e548c42ccb planner: support Hash exchange operator when new collation is enabled. (#26789) 2021-08-04 10:39:06 +08:00
0bf495d5e8 planner: unify the terms NDV and cardinality in the optimizer (#26345) 2021-07-20 11:59:35 +08:00
60b600ef1a planner/core: always add projection to agg that is pushed to tiflash (#26263) 2021-07-15 16:05:32 +08:00
3ad894da97 planner/core: thoroughly push down count-distinct agg in the MPP mode. (#25662) 2021-06-30 14:55:26 +08:00
27489d43b4 planner: Log warnings when agg function can not be pushdown in explain statement (#25553) 2021-06-24 15:21:23 +08:00
1f0245a821 planner: Revert tidb_allow_mpp modification for downgrade compatibility and add warnings for enforce mpp. (#25302) 2021-06-11 10:28:35 +08:00
cad482c036 planner/core: remove the union branch with dual table. (#25218) 2021-06-08 19:46:28 +08:00
a7f3c4d8bd planner/core: change agg cost factor (#25210) 2021-06-08 15:44:28 +08:00
64b469623c planner/core: support limit push down (#24757) 2021-06-04 16:56:28 +08:00
b07942836f planner: fix a panic caused by sinking a Limit with inlined Proj into IndexLookUp when accessing a partition table (#25063) 2021-06-04 13:54:27 +08:00
49cd57174b session, planner: Add a factor getter for networkFactor/scanFactor/descScanFactor/seekFactor (#25046) 2021-06-03 16:50:27 +08:00
52e89cb8bf planner/core: support union all for mpp. (#24287) 2021-06-02 14:15:38 +08:00
ec618f1619 planner: support set tidb_allow_mpp to 2 or ENFORCE to enforce use mpp mode. (#24516) 2021-05-12 18:05:40 +08:00
0859a3c029 planner: refactor Converting Partition Keys for shuffle hash join (#24456) 2021-05-08 17:40:41 +08:00
e79fa8c6b6 planner: let CopTiFlashConcurrencyFactor inflence the cost of whole plan (#24157) 2021-04-28 16:43:56 +08:00
05bb31b811 planner/core: push down topn to mpp (#24081) 2021-04-19 12:49:52 +08:00
7d5fe41470 planner: support explain verbose mode (#23926) 2021-04-15 18:23:53 +08:00
50ea46ccb0 planner: append common handle columns into the schema of index merge table plan (#23933) 2021-04-14 20:27:52 +08:00
c2d5bef4e4 planner: make sure that join key type are always the same for mpp join (#23930) 2021-04-12 19:55:50 +08:00
008b91b12b planner: fix "can't find column" when projection wrongly added above table reader after agg pushed down (#23804)
* add test and comments
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-01 23:42:17 +08:00
c660cee89b planner/core: fix a bug during add cast for decimal join key (#23723) 2021-03-31 17:54:26 +08:00
bc07307ec9 planner: fix bug that mpp avg will throw column index out of bound error (#23604) 2021-03-27 15:35:23 +08:00
fe250b9efb planner: fine grained collation control for mpp plan (#23584) 2021-03-26 18:31:23 +08:00
b11c71d23e MPP: fix 2-phase agg chose wrong partition column during planning (#23557) 2021-03-26 17:49:23 +08:00
a909037110 planner/core: inject project for tiflash agg (#23480) 2021-03-26 12:31:23 +08:00
40b92181d0 planner/core: convert decimal type for mpp join before shuffling. (#23191)
* planner: convert decimal type for mpp join before shuffling.

* fix bug and add code

* add some comments

* fix typo

* fix test

* add test and fix

* address comments

* add more tests

* address comments

* address comments

* address comments

* address comments

* add tests

* refine test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-26 00:16:58 +08:00
f6a61bc915 plan/core: support mpp group by expressions. (#23133)
* planner/core: make mpp support grouping by expressions

* add tests

* fix typo

* fix

* fix test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-10 17:06:15 +08:00
50aec2b2d2 planner: enable column pruning for common handle (#22940) 2021-03-04 14:42:54 +08:00
3ad7f40140 expression: Add warning info for exprs that can not be pushed to storage layer (#22713) 2021-02-20 10:41:57 +08:00