Commit Graph

33 Commits

Author SHA1 Message Date
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
b76d4675d5 planner/core: fix bug that injected proj get wrong index. (#25336) 2021-06-11 12:24:35 +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
8bf35daf1a planner: disable mpp_outer_join_fixed_build_side by default (#25240) 2021-06-09 12:44:28 +08:00
b1beb1b67d planner: add some tiflash test cases on dynamic partition prune mode (#25131) 2021-06-04 14:24:17 +08:00
7602a2774c planner: add more test cases about tiflash and dynamic mode (#25111) 2021-06-04 13:16:27 +08:00
52e89cb8bf planner/core: support union all for mpp. (#24287) 2021-06-02 14:15:38 +08:00
f9d4af0276 executor: skip TestMppExecution when race is enabled (#24222) 2021-04-23 16:15:54 +08:00
05e584f145 planner: do not build MPP plan for scan with virtual columns (#23980) 2021-04-15 19:33:53 +08:00
9bbda60198 planner, sessionvar: avoid sending same task id to TiFlash (#23747)
Co-authored-by: Zhuhe Fang <fzhedu@gmail.com>
2021-04-09 20:22:18 +08:00
c660cee89b planner/core: fix a bug during add cast for decimal join key (#23723) 2021-03-31 17:54:26 +08:00
8492619a83 store, plan: make mpp workable when some node is not available shortly. (#23589)
* store: provide an option to enable tiflash replica balance

* change timeout error

* fix non-table test

* add comments

* fix dev

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-26 21:27:49 +08:00
6cdfaab99f planner: fix correlated columns in filter or access in MPP apply (#23509) 2021-03-26 20:21:24 +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
6049ed78a1 test: add testleak after checking and testing (#23324) 2021-03-18 17:45:36 +08:00
0b68d8a0f0 test: work around goroutine leak (#23288) 2021-03-12 19:24:55 +08:00
f77bbc4cb2 planner/core: pass the elems info to fieldtype only for exchanger (#23203)
* planner/core: pass the elems info to fieldtype only for exchange receiver.

* address comments

* address comments

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-12 18:50:53 +08:00
6b69883410 MPP: Kill mpp queries (#23056)
* run ok

* update comments

* send cancle cmd to all tiflash stores

* updated

* log error if sending failed

* update comments

* disable send task when being killed

* update function name

* add test for kill mpp when mocking grpc hang

* update imports

* update comments

* clean go.mod

* updated

* use cancel to avoid goroutine leak, ensure cancellMppTasks being called just once

* update go.mod

* add test for avoiding goroutine leak

* update test

* update test

* remove unnecessary leak test
2021-03-12 17:27:30 +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
505955ad0b planner: fix bug of mpp wrongly set schema of exchanger (#22845)
* planner: fix bug of mpp wrongly set schema of exchanger

* support outer join in mock engine

* add unit test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-05 15:54:52 +08:00
bafa0cc49d planner/core: let mpp support partition tables (#22662) 2021-03-04 20:56:54 +08:00
622f702aae store/mockstore/unistore: refine and add more mpp tests (#22803)
* refine and add more tests

* fix make dev and address comments

* fix make dev
2021-03-03 14:31:05 +08:00
602bcd2e40 *: fix some structcheck lint warnings (#22983) 2021-03-02 23:12:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
461cae15a7 planner, distsql: fix the behaviour of building ranges for TiFlash (#22725) 2021-02-21 18:29:46 +08:00
ee876397ac unistore/cophandler: change the logic of mpp execution in unit test. (#22428) 2021-02-01 19:06:42 +08:00
edce3b75ad tests: add mpp mock test, part 2 (#21631) 2020-12-25 13:46:40 +08:00
c23394e954 test: migrate tiflash mock test from mocktikv to unistore (#21038) 2020-11-17 16:05:58 +08:00
0d613a2dfa [executor, store/tikv]: implement a prototype for MPP framework. (#19954) 2020-10-26 14:46:47 +08:00
c8f436cbc6 executor : refine partition table read for tiflash table read (#19406)
* executor : refine partition table read for tiflash table read

* refine code

* address comments

* fix ci

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 14:29:51 +08:00
6fe7fe4424 executor : fix refill table id bug for tiflash partition reading (#19351) 2020-08-21 15:17:36 +08:00