Commit Graph

166 Commits

Author SHA1 Message Date
c76fe3ff97 plan replayer: fix cannot load bindings when the statement contains in (...) (#50762)
close pingcap/tidb#43192
2024-01-31 13:54:25 +00:00
6210eddce8 bindinfo: replace record with bind keyword (#50822)
close pingcap/tidb#48875
2024-01-30 11:00:23 +00:00
7087f702e1 executors: record the index usage in each executors (#50643)
close pingcap/tidb#50261
2024-01-30 03:51:22 +00:00
ff050bb143 expression: add expression.BuildContext to build expressions (#50662)
close pingcap/tidb#50661
2024-01-29 11:27:22 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +00:00
41f56d1e89 planner: fix name ambiguous check when building natural join without filter (#36012)
close pingcap/tidb#32044
2024-01-29 07:21:22 +00:00
1760a26d30 hint: refactor PlanHints (#50768)
ref pingcap/tidb#48875
2024-01-29 04:33:22 +00:00
6a87b80e2c sessionctx: fix data race of SessionVars.Status (#50729)
close pingcap/tidb#50715
2024-01-26 18:39:20 +00:00
c1299bbfc5 planner: move more hint code to the hint package (#50756)
ref pingcap/tidb#48875
2024-01-26 12:06:20 +00:00
f72e1d966c planner: add Sysdate into deferredFunctions when enable SysdateIsNow (#49949)
close pingcap/tidb#49299
2024-01-26 10:24:20 +00:00
9416934ea3 *: split planner errors and remove duplicate definitions (#50695)
ref pingcap/tidb#48875
2024-01-26 09:42:21 +00:00
de177d85b1 expression: use buildExprWithAst to implement evalAstExpr (#50660)
ref pingcap/tidb#50463
2024-01-26 04:16:50 +00:00
799a46107e planner: move more hint code to the hint package (#50728)
ref pingcap/tidb#48875
2024-01-25 15:09:21 +00:00
035df1a00a *: refactor limit hint (#50730)
ref pingcap/tidb#48875
2024-01-25 11:43:51 +00:00
f94e331475 planner: refactor some internal hint structures (#50720)
ref pingcap/tidb#48875
2024-01-25 08:03:21 +00:00
e42d0bf4e5 *: support tidb_opt_use_invisible_indexes (#50654)
ref pingcap/tidb#50653
2024-01-25 03:51:22 +00:00
4abe19251d planner: Correct error message for ALTER INSTANCE (#50700)
close pingcap/tidb#50699
2024-01-24 15:13:50 +00:00
230e1d07b6 bindinfo: add SetHintWarning to trace the hint warning (#50666)
close pingcap/tidb#48875
2024-01-24 11:27:21 +00:00
bc451d9f2e expression: provide BuildExprWithAst to build expression without planner context (#50464)
close pingcap/tidb#50463
2024-01-23 08:24:21 +00:00
301d1d2048 statistics/handle/usage: modify the SessionIndexUsageCollector to implement new index usage design (#50050)
close pingcap/tidb#49835
2024-01-22 14:40:50 +00:00
67fb41548d planner: move iterate physical plan out (#50628) 2024-01-22 14:01:49 +00:00
0fc0084e56 optimizer: move adjust optimization flags code out (#50622) 2024-01-22 05:39:19 +00:00
6db1d6b79c planner/core: Key partitioning uses an column index, which did not match value pairs in fast plan (#50210)
close pingcap/tidb#50206
2024-01-19 13:10:48 +00:00
7b48fecc64 planner: increase the upper limit for analyze (#50600)
close pingcap/tidb#50597
2024-01-19 12:37:48 +00:00
f0bd5aa2b6 planner: fix single mv index merge case couldn't be hinted by use_index_merge (#50572)
close pingcap/tidb#50553
2024-01-19 09:42:18 +00:00
bfa10bdc18 bindinfo: SetSkipPlanCache use nostack errors (#50585)
close pingcap/tidb#49291
2024-01-19 05:34:47 +00:00
9b4cf39b7a planner: show the reason why cannot hit plan cache for EXECUTE statements (#50505)
close pingcap/tidb#50407
2024-01-17 17:27:16 +00:00
fb90216ef1 planner: fix index merge intersection case will have redundant partial path (#50495)
close pingcap/tidb#50496
2024-01-17 11:51:23 +00:00
07fded43d4 parser: add support for the SHOW {REPLICA | SLAVE} STATUS stmt. (#50404)
close pingcap/tidb#50403
2024-01-16 09:55:52 +00:00
9fb89b002c executor: fix select wrong partition for hash partition table (#50430)
close pingcap/tidb#50427
2024-01-16 02:36:15 +00:00
186f08cf71 planner: fix mv index path will be leveraged as index join's probe side (#50439)
close pingcap/tidb#50382
2024-01-15 12:33:15 +00:00
d68acd6da5 bindinfo: refacter the matcher (#50362)
ref pingcap/tidb#48875
2024-01-15 06:21:14 +00:00
6be00181f7 planner: enhance fix control 49736 (#50405)
ref pingcap/tidb#49736
2024-01-15 03:20:48 +00:00
d0c81e1f2a planner: fix intersection type mv index's filters mutations composition (#50379)
close pingcap/tidb#50380
2024-01-13 04:27:25 +00:00
637aaa5f5b planner: return the complete error info when Parallel Apply meets problem (#50335)
close pingcap/tidb#50256
2024-01-12 10:30:26 +00:00
f257590afc planner: fix union index merge can merge a embedded intersection index merge with only one partial path (#50363)
close pingcap/tidb#50265
2024-01-12 09:00:25 +00:00
c1eb8abb6e *: bypass order by clause for fast point get plan (#50204)
close pingcap/tidb#49920
2024-01-12 06:57:25 +00:00
1c4b27ccb4 planner: add exprRewriterPlanCtx and move planner related fields to it when building expression (#50065)
close pingcap/tidb#50064
2024-01-12 02:45:26 +00:00
0236944eab planner: fix leading hint cannot take effect in UNION ALL statements (#50277)
close pingcap/tidb#50067
2024-01-11 08:11:09 +00:00
e3bd0df35d planner: avoid scanning multi-valued index when there is no condition related (#50183)
close pingcap/tidb#50125
2024-01-11 03:31:55 +00:00
4252974183 planner: only change the incorrect comments for the heuristic rule of unique index (#50262)
close pingcap/tidb#50184
2024-01-10 09:54:30 +00:00
1a5a72aaf8 planner: do not remove the first row func if it is a constant (#50020)
close pingcap/tidb#38756
2024-01-10 09:54:24 +00:00
d505704207 Revert "planner: fix leading hint cannot take effect in UNION ALL statements" (#50260)
close pingcap/tidb#50067
2024-01-10 08:32:08 +00:00
c55105e044 planner: fix leading hint cannot take effect in UNION ALL statements (#50145)
close pingcap/tidb#50067
2024-01-10 07:18:24 +00:00
edecaa6841 importinto: import from select parser/planner part (#49976)
ref pingcap/tidb#49883
2024-01-09 05:57:23 +00:00
8ad0f7a744 planner: choose the better unique index (#50185)
close pingcap/tidb#50184
2024-01-09 03:43:54 +00:00
7893f1637e planner: fix range partition prune with an unsigned column (#50113)
close pingcap/tidb#50082
2024-01-08 11:42:36 +00:00
9b0fd9ea29 *: renaming variables/structs to improve readability / decrease confusion (#49989)
close pingcap/tidb#49988
2024-01-06 02:58:51 +00:00
c3346856e6 planner: avoid repeat normalization on the same query when matching binding for plan cache (#50133)
ref pingcap/tidb#48875
2024-01-05 09:58:51 +00:00
b4ba24b129 parser: remove universal keyword (#50103)
close pingcap/tidb#50066
2024-01-05 08:17:11 +00:00