Commit Graph

244 Commits

Author SHA1 Message Date
cea06b3d49 planner: fix wrong aggregate pruning for some cases (#25289) 2021-06-16 14:12:37 +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
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
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
be63681161 expression: processing empty string for enum index correctly (#25101) 2021-06-04 17:28:28 +08:00
64b469623c planner/core: support limit push down (#24757) 2021-06-04 16:56:28 +08:00
2e083b40e5 statistics: support indexes containing virtual column for full sampling (#24999) 2021-06-04 16:18: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
c59b3bcea6 planner: Mpp outer join build side (#25130) 2021-06-04 12:44:27 +08:00
d3de5479a0 planner: support push down broadcast cartesian join to TiFlash (#25049) 2021-06-03 17:38:27 +08:00
ad7102cdee planner: generate correct number of rows when all agg funcs are pruned (#24937) 2021-06-02 18:20:26 +08:00
f79dc8b218 executor: pessimistic lock on the temporary table should not be written to TiKV (#24737) 2021-05-26 12:41:34 +08:00
163eb5f03c planner: Implement PointGet in TryFastPlan for range/list paritition table (#24588)
* implement PointGet in TryFastPlan for range/list partition
2021-05-22 01:23:53 +08:00
5be8a65633 expression: support cast real/int as real (#24670) 2021-05-20 18:00:22 +08:00
e7db533810 planner: ignore lock for temporary table of PointGet and BatchPointGet (#24540) 2021-05-12 19:49:40 +08:00
f135c534a5 plan: merge continuous selections and delete surely true expressions (#24214) 2021-05-10 23:25:37 +08:00
0859a3c029 planner: refactor Converting Partition Keys for shuffle hash join (#24456) 2021-05-08 17:40:41 +08:00
a6ec081b82 planner: fix column pruning bug for Apply and Join (#24369) 2021-05-06 21:15:52 +08:00
a57dc3ab65 planner: prune partitions that will never be used (#24376) 2021-05-06 19:59:52 +08:00
1cd3788334 planner: convert Sequence as DataSource to TableDual (#24405) 2021-05-06 13:35:52 +08:00
207ce344cb planner: remove useless predicates after partition pruning (#24282) 2021-05-02 23:21:51 +08:00
257ce7d93d planner: filter conflict read_from_storage hints (#24313) 2021-04-29 14:51:57 +08:00
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