Commit Graph

220 Commits

Author SHA1 Message Date
e79fa8c6b6 planner: let CopTiFlashConcurrencyFactor inflence the cost of whole plan (#24157) 2021-04-28 16:43:56 +08:00
8da5a1f113 planner, expression: support enum index scan (#22691) 2021-04-28 15:59:56 +08:00
ce13bc7400 planner: between .. and on int column can be used to prune hash partition (#24245) 2021-04-27 18:43:56 +08:00
fb676b7697 Revert "planner: donot prune all columns for Projection (#24024)" (#24180) 2021-04-25 11:47:55 +08:00
6f4d8a32eb planner: Fix Join reorder occurs "index out of range" error (#24102) 2021-04-21 20:19:54 +08:00
421571f49d planner, executor: fix index merge partial table scan schema (#23936) 2021-04-19 16:29:52 +08:00
05bb31b811 planner/core: push down topn to mpp (#24081) 2021-04-19 12:49:52 +08:00
336f30575f planner: fix index merge row count estimation logic (#23137) 2021-04-16 19:21:51 +08:00
4cd7fb0227 planner: donot prune all columns for Projection (#24024) 2021-04-16 18:17:52 +08:00
f23e349659 planner: change descScanFactor to scanFactor when rowCount is small. (#23972) 2021-04-16 14:37:51 +08:00
7d5fe41470 planner: support explain verbose mode (#23926) 2021-04-15 18:23:53 +08:00
83d8c4998f planner: optimize count(distinct a) to count(a) if there is an unique key on a (#23487) 2021-04-14 20:59:52 +08:00
91dcc753f7 planner: do not push down to TiFlash if the table scan require to scan data in desc order (#23948) 2021-04-12 21:55:50 +08:00
32f6e333af planner: split test data from test cases in cbo_test.go (#22559) 2021-04-03 00:33:24 +08:00
653953f675 planner: build correct MaxOneRow info from multi-column conditions (#22915) 2021-04-01 18:33:24 +08:00
44f81cb9d9 planner, table: optimize the list column partition pruner for range query (#22294) 2021-03-29 17:25:23 +08:00
32a9c3d13c expression: separated arithmeticModIntSig (#22137) 2021-03-29 17:07:24 +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
1cebae21a7 planner, sessionctx: turn on the mpp by default (#23401) 2021-03-23 21:01:37 +08:00
d7883fe146 planner: fix only_full_group_by check not enough (#23404) 2021-03-23 13:17:36 +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
f30108d88c executor, expression: fix the incorrect result of AVG function (#23285) 2021-03-17 13:42:55 +08:00
5bafb3203e planner: show cast type in EXPLAIN in coptask (#23123) 2021-03-16 16:16:55 +08:00
cd199b23aa planner: not push down mpp/join to TiFlash in some cases that TiFlash not supported the query (#23259) 2021-03-12 21:34:55 +08:00
362883c245 expression, planner: allow pushdown count distinct when enumerate physical plans (#22867) 2021-03-11 19:22:55 +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
9ac5b7ae36 planner: fix wrong table filters for index merge plan (#23132) 2021-03-08 15:50:56 +08:00
b3d4458b28 planner: refine explain info for batch cop (#20360) 2021-03-08 15:30:54 +08:00
50aec2b2d2 planner: enable column pruning for common handle (#22940) 2021-03-04 14:42:54 +08:00
806097c2e5 planner: fix wrong index merge selection (#22825) 2021-02-24 20:18:03 +08:00
2d48f9573c planner: decorrelate LogicalApply with inner join as the inner child (#22649) 2021-02-24 15:42:03 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +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
6d53dda29d plan, mpp: refine the precision of avg(decimal) & avg(null) for mpp (#22668) 2021-02-04 18:58:15 +08:00
44641c3282 planner: change the content of AnalyzeTableID to build global-stats (#22554) 2021-02-02 15:39:44 +08:00
7b79af93d7 planner: fix in-compatibility issues between TiDB agg and TiFlash agg in MPP mode (#22537) 2021-01-27 16:03:32 +08:00
e2540d4ec0 planner: Shuffle hash agg (#21842) 2021-01-22 11:49:30 +08:00
dd5bfc3949 planner: reorder inner joins simplified from outer joins (#22392) 2021-01-15 11:57:29 +08:00
dae6e4935b planner/core: push selection operator to mpp task (#22343) 2021-01-11 17:51:58 +08:00
6e98d18e94 planner: push down projection for tiflash (#21459) 2021-01-07 11:41:44 +08:00
4bfd10cec8 planner: do not use indexMerge when the path only use a single index (#22168) 2021-01-05 20:44:41 +08:00
6742ed201d planner/core: fix a bug of adding enforcer. (#22086) 2021-01-05 17:01:39 +08:00
857e3da6eb planner: join reorder should not change the order of output columns (#16852) 2020-12-31 14:51:14 +08:00
f1805f3dee planner: avoid using index_merge when there are multiple table filters (#22122) 2020-12-31 13:39:49 +08:00
5e67a597cc planner, store/tikv, executor:Support shuffled hash join and refine codes (#20894) 2020-12-28 15:14:15 +08:00