Commit Graph

192 Commits

Author SHA1 Message Date
2d62d23b20 planner: support trace candidates for Datasource (#31810)
ref pingcap/tidb#29661
2022-01-21 11:11:45 +08:00
ad1c5b5081 *: add pushdown for ShowStmt and implement for show columns (#31742)
close pingcap/tidb#29910
2022-01-20 20:41:45 +08:00
883f72bd36 planner: revise optimize tracer code structure (#31739)
ref pingcap/tidb#29661
2022-01-19 12:47:44 +08:00
dff91fab0a planner: fix panic during optimizer trace (#31542)
close pingcap/tidb#31537
2022-01-12 23:07:42 +08:00
9acb2c2ad5 planner: add optimizer trace framework for physicalOptimize (#30335)
close pingcap/tidb#30334
2022-01-05 15:44:36 +08:00
ab821eb315 planner: add usage of paging copr in optimizer (#30536)
close pingcap/tidb#30578
2021-12-24 18:23:53 +08:00
e24493f411 planner: fix AccessPath.TableFilters got modified unexpectedly (#30966)
close pingcap/tidb#30965
2021-12-23 19:13:47 +08:00
7121bf0289 planner: fix index merge plan when expr cannot be pushed to tikv (#30341)
close pingcap/tidb#30200
2021-12-23 13:39:47 +08:00
daf525a17e *: replace compareDatum by compare, range part (#30710) 2021-12-16 19:48:36 +08:00
2f42f7c0f6 planner: unify the argument of stats functions to use SessionCtx instead of StatementContext (#30668) 2021-12-14 19:36:35 +08:00
a90344c5a3 planner: regard NULL as point when accessing composite index (#30244) 2021-12-01 10:15:34 +08:00
126dbc8d72 planner: consider prefix index column length in skyline pruning (#27527) 2021-11-26 15:45:50 +08:00
8dc59e684a planner: make clear for MaybeOverOptimized4PlanCache (#29782) 2021-11-25 16:42:29 +08:00
78c653e294 planner: rebuild range when the range is empty (#30003) 2021-11-25 15:10:48 +08:00
d15ca2a869 planner: unify the argument of range functions to use SessionCtx instead of StatementContext (#29999) 2021-11-23 12:35:51 +08:00
7aa86cc96a *: Enable gosec for implicit memory aliasing in for loop (#28996) 2021-11-19 20:07:48 +08:00
276721877c planner: generate PointGet plans for PlanCache when all conditions are EQ (#29859) 2021-11-17 16:53:47 +08:00
3032d87e4e *: enable golangci-lint exportloopref (#28991) 2021-11-01 18:36:51 +08:00
20023fe9ea planner: add more test cases for plan cache (#29175) 2021-10-28 19:04:50 +08:00
6d24f8cf4b planner: add an extra safe-guard selection upon DataSource to prevent wrong results caused by wrong rebuilt range when using plan-cache (#28976) 2021-10-21 04:12:45 +08:00
4c4d3f6daa planner: generate the additional filter in table filter when enable plan cache (#28722) 2021-10-12 17:01:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
501e87ec44 planner: fix the issue that some PointGet plans generated in physical-stage cannot be cached (#28478) 2021-10-09 17:33:24 +08:00
711e27e991 planner: check whether the plan is valid in skylinePruning first (#28655) 2021-10-09 15:29:24 +08:00
091ae3bde0 planner: generate addition selection when plan cache enable (#28457) 2021-09-29 16:38:47 +08:00
afca7649fa planner: refine prefer-range-scan behavior (#27123) 2021-09-02 12:06:14 +08:00
9e248d9420 planner: correctly set StatsVersion of tablePlan in copTask (#27161) 2021-08-25 18:06:04 +08:00
086a63f471 planner: fix tablesample 'order by' clause from partitioned table (#27383) 2021-08-20 11:54:01 +08:00
c5689a1d3f planner: fix row count estimation for partially pushed down selections (#25715) 2021-08-18 14:17:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
312ec6cf47 planner: output skyline pruning information when executing EXPLAIN (#26748) 2021-08-06 19:57:14 +08:00
cc1f990bac planner: fix update panic when update in prepare and execute (#26759) 2021-08-05 23:41:13 +08:00
bc625e9379 planner: add heuristic rules for index selection (#26304) 2021-08-04 20:09:07 +08:00
83181c6bcb planner: steady expression index selection when having duplicate expressions (#25826) 2021-08-02 14:47:06 +08:00
7f2843803a planner: improve skyline pruning (#26271) 2021-08-02 14:17:06 +08:00
57d704bffe planner: fix CTE bug when MergeJoin is used (#25514) 2021-07-27 18:20:16 +08:00
51c48d2fa2 planner: update the correlation adjustment rule of Limit/TopN for TableScan (#26445) 2021-07-27 17:34:16 +08:00
4a0ead8f03 planner: only build the same CTE once (#26454) 2021-07-27 10:04:16 +08:00
8e5dd485e7 planner: fix stat for CTE (#26279) 2021-07-19 19:09:34 +08:00
a8d23fda41 *: optimize query statements summary table by avoid decode plan for each row (#25892) 2021-07-06 12:51:28 +08:00
eeb534147e planner,executor: fix batch point get for update read panic on partition table (#25652) 2021-06-22 14:59:04 +08:00
5645edeec6 planner,executor: fix point get for update read panic on partition table (#25537) 2021-06-18 12:22:38 +08:00
efc774aa5f planner: check filter condition in func convertToPartialTableScan (#25294) 2021-06-16 15: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
cad482c036 planner/core: remove the union branch with dual table. (#25218) 2021-06-08 19:46:28 +08:00
3947c5c6e0 typo: GetlogicalTS4TaskMap -> GetLogicalTS4TaskMap (#25135) 2021-06-07 15:22:28 +08:00
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
49cd57174b session, planner: Add a factor getter for networkFactor/scanFactor/descScanFactor/seekFactor (#25046) 2021-06-03 16:50:27 +08:00
a80047c604 CTE: support explain CTE plan (#24986) 2021-05-31 19:03:36 +08:00
ac04473227 planner, executor: support batchget for range and list partition table (#24856) 2021-05-28 21:01:35 +08:00