Commit Graph

54 Commits

Author SHA1 Message Date
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
4b4984e6cc planner: remove duplicate predicates in the Selection operator (#28317) 2021-10-28 15:18:49 +08:00
c5689a1d3f planner: fix row count estimation for partially pushed down selections (#25715) 2021-08-18 14:17:59 +08:00
84a8b0f6ee planner: don't extract hash keys from index join's OtherConds if inl_merge_join hint exists (#24994) 2021-08-18 11:28:00 +08:00
1c6c548334 planner: add missing column for Apply convert to Join (#27246) 2021-08-17 11:49:59 +08:00
e116573fbb expression: push down mod() to TiFlash (#26494) 2021-07-27 12:50:15 +08:00
008d5e3fd2 parser, core: Implement force_index hint in parser and TiDB (#23836) 2021-07-01 17:39:26 +08:00
be63681161 expression: processing empty string for enum index correctly (#25101) 2021-06-04 17:28:28 +08:00
8da5a1f113 planner, expression: support enum index scan (#22691) 2021-04-28 15:59:56 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
6742ed201d planner/core: fix a bug of adding enforcer. (#22086) 2021-01-05 17:01:39 +08:00
d33b81b1ee planner: fix distinct push across projection when read partition table (#21060) 2020-12-14 17:41:25 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
084e7190b8 planner: fix unit test for tidb_opt_prefer_range_scan variable (#21294)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Yiding Cui <winoros@gmail.com>
2020-11-25 19:56:16 +08:00
dy
a426a0e5ff planner: disallow multi-updates on primary key (#20603) 2020-11-17 18:33:53 +08:00
5aada1f4ef planner: add unit test for tidb_opt_prefer_range_scan variable (#20672) 2020-11-13 17:53:34 +08:00
66b241e440 planner: correlated column with unique constraint can help to eliminate MaxOneRow (#20259)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-10-22 17:02:28 +08:00
4501f6d7ab planner, executor: enable inline projection for Limit (#20288) 2020-10-19 10:55:13 +08:00
31bd7d8b3d planner: rename optimizer hint TOPN_TO_COP() to LIMIT_TO_COP() (#20022) 2020-09-17 14:23:23 +08:00
f388b094df planner: add optimizer hint TOPN_TO_COP() (#19545)
* planner: add TopN_To_Cop hint.

* go fmt.

* add a method canPushToCop() to check if it is valid to push the TopN down.

* add unit test case for warning.

* gofmt.

Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-10 17:18:20 +08:00
af129d2116 planner: reset plan ID count when using nth_plan hint (#18409) 2020-07-10 09:46:34 +08:00
dce0e45bdf planner, add hint nth_plan(x) to help user force a plan (#17850) 2020-07-01 15:34:22 +08:00
7ebcc20398 executor: support GROUP_CONCAT(ORDER BY) (#16591) 2020-05-06 18:41:22 +08:00
76b910edd1 planner: hints for index merge should check the DB name for a table (#16519) 2020-04-29 15:46:56 +08:00
637d3b8a44 planner: only push count distinct when child is DataSouce (#16371) 2020-04-16 13:04:33 +08:00
49ee75a0a5 planner, executor: enable inline projection for merge join (#15463) 2020-04-09 15:58:32 +08:00
77f970c48c planner: fix push down distinct when need to inject projection (#15997) 2020-04-02 11:43:01 +08:00
4eb9ca3d3f planner: push aggregation functions with distinct to cop (#15500) 2020-04-01 20:49:14 +08:00
dd141728a3 planner: add warning when the table name of indexHint cannot be found (#15517) 2020-03-27 11:32:14 +08:00
36e89f8220 planner: make multiple USE_INDEX_MERGE(t) hints take effect (#15603) 2020-03-24 13:38:32 +08:00
7a09249a74 planner: fix bug some cases index merge join hint doesn't work (#15515) 2020-03-23 18:05:31 +08:00
5268094afe planner: correct the dbName for hint (#15319) 2020-03-17 22:20:13 +08:00
544e45eb54 planner, executor: fix rename sm_join to merge_join (#15394) 2020-03-17 18:32:13 +08:00
c1114b9724 planner, executor: enable inline projection for index joins (#15004) 2020-03-02 15:32:09 +08:00
6d00e2169b planner: enable inline projection for hash join (#14783) 2020-02-28 16:28:10 +08:00
b64ad65636 planner: improve projection to keep order or keep index in some cases (#14510) 2020-02-26 14:02:36 +08:00
03705d1344 test: fix TestAggToCopHint (#14741) 2020-02-12 21:46:17 +08:00
74bc00dfa9 Improve the performance of WindowExec by using multi-thread hash grouping (#14238) 2020-01-16 21:04:16 +08:00
fe764a97a3 *: only add union scan when dirty table is not empty (#14265) 2019-12-31 13:20:27 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
596fb64233 planner: support a hint to force using a IndexMerge path (#12843) 2019-11-27 15:44:25 +08:00
2baaf1f048 planner: support hint for IndexHashJoin and IndexMergeJoin (#13238) 2019-11-13 21:21:04 +08:00
f4ee90d06f planner: correct block offset for table as names (#12996) 2019-11-11 17:46:29 +08:00
44a5ffe8a0 planner: support database name in optimizer hint (#12932) 2019-10-25 19:45:18 +08:00
c047835df1 planner: correct unit test for outer join simplification with cast (#12782) 2019-10-17 22:27:48 +08:00
15984f696d planner, expression: fix simplify outer join with cast (#12701) 2019-10-15 16:42:03 +08:00
45bc789a0f planner: stream agg should not be pushed to double read (#12443)
For the following two reason, we should not push stream agg down to double read
- The aggregate will lost the handle information
- There's no sort operator. The second read is ordered with pk, not by index.
2019-10-12 19:22:04 +08:00
fc577e705d planner: retrieve optimizer hint scope change (#12382) 2019-10-08 12:09:46 +08:00
9d8ea995cb planner/core: adjust generated hints of join operators (#12318) 2019-09-24 15:55:45 +08:00
ed9e973e50 util, planner: add more testSuite json files (#12247) 2019-09-18 13:59:46 +08:00