Commit Graph

262 Commits

Author SHA1 Message Date
e548c42ccb planner: support Hash exchange operator when new collation is enabled. (#26789) 2021-08-04 10:39:06 +08:00
cb65b7a2f7 statistics: improve out-of-range estimation strategy (#26502) 2021-08-02 17:43:08 +08:00
fdd6663d30 planner: add more test cases for list partitioning (#26729) 2021-08-02 15:45:06 +08:00
7f2843803a planner: improve skyline pruning (#26271) 2021-08-02 14:17:06 +08:00
e0dbe7ae8a planner: push TopN down when N is less than a specific variable (#26550) 2021-07-27 16:38:16 +08:00
e116573fbb expression: push down mod() to TiFlash (#26494) 2021-07-27 12:50:15 +08:00
a4146033fb planner: report warning when mpp join can't be selected whether it is MPPTask. (#26487) 2021-07-23 17:52:14 +08:00
70493cdf4d planner: refine the control logic of broadcast join (#26347) 2021-07-23 17:30:14 +08:00
1c088522c8 planner: fix the unstable test TestOrderedResultModeOnOtherOperators (#26481) 2021-07-23 10:48:14 +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
76c5fd0e26 planner: add warnings about joins when tidb_enforce_mpp is enabled. (#26246) 2021-07-15 15:31:32 +08:00
0db5df550b planner: rename stable-result-mode to ordered-result-mode (#26093) 2021-07-12 16:01:32 +08:00
c24a90f9e7 planner: support stable result mode (#25971) 2021-07-06 15:11:29 +08:00
008d5e3fd2 parser, core: Implement force_index hint in parser and TiDB (#23836) 2021-07-01 17:39:26 +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
9ca449b8bd planner: enforce projection push down (#25450) 2021-06-22 23:55:22 +08:00
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