Commit Graph

1391 Commits

Author SHA1 Message Date
ccda674e6b planner: reduce NewPlanCacheKey allocations with sync.Pool (#65072)
ref pingcap/tidb#65117
2025-12-22 11:58:29 +00:00
4915482a36 *: use IsColOpCol to remove the same code (#65144) 2025-12-22 10:08:23 +00:00
ce06e5d382 *: fix index lookup pushdown error for partition table + uncomitted rows (#65157)
close pingcap/tidb#65155
2025-12-22 08:30:40 +00:00
e0803fa0a1 expression, planner: fix ambiguous column name in overflow error message (#64887)
close pingcap/tidb#17993
2025-12-19 16:59:38 +00:00
69f71e4ab1 sem, privilege: fix the issue that some privileges cannot be limited (#64160)
close pingcap/tidb#64159
2025-12-19 07:34:47 +00:00
308789723b planner: fix the flaky test TestTiFlashLateMaterialization (#65119)
close pingcap/tidb#61989
2025-12-18 13:47:29 +00:00
a14f0c8f22 ddl: sync affinity group for pd and support show affinity (#65049)
ref pingcap/tidb#64938
2025-12-17 12:37:56 +00:00
cb08e5eda4 planner: Apply should not be full scan when plan cache enabled (#64646)
close pingcap/tidb#64645
2025-12-16 04:17:14 +00:00
69fb8dbc92 *: support system variable tidb_index_lookup_pushdown_policy and hint NO_INDEX_LOOKUP_PUSHDOWN (#64932)
ref pingcap/tidb#62575
2025-12-15 05:38:47 +00:00
80f74ede58 stats: set the default analyze column options to all (#64994)
ref pingcap/tidb#64992
2025-12-12 23:58:19 +00:00
998137b5e0 planner: Remove redundant null check in matchProperty function (dead code) (#64998)
close pingcap/tidb#64997
2025-12-12 21:53:08 +00:00
5271f751a0 planner: remove code of the deprecated optimizer trace - 5 (#64945)
ref pingcap/tidb#63725
2025-12-12 04:16:26 +00:00
e0813f3a47 planner: Fix bug in the plan cache when the metadata lock is disabled. (#64795)
close pingcap/tidb#64351
2025-12-11 00:35:20 +00:00
7f2f109d34 planner: simplify some estimation code (#64953)
ref pingcap/tidb#63725
2025-12-10 12:09:44 +00:00
fc68c74dbb planner: remove code of the deprecated optimizer trace - 4 (#64929)
ref pingcap/tidb#63725
2025-12-10 02:35:39 +00:00
91a2277e0e expression: keep the same order of scalarFunction's args when to prepagate constant (#64927)
close pingcap/tidb#64924
2025-12-09 13:04:11 +00:00
tpp
170254e4cb planner: avoid int range for no PK predicates (#64847)
ref pingcap/tidb#64791
2025-12-08 21:22:05 +00:00
5fcd054a62 planner: fix incorrect TblColPosInfo calculation in buildDelete after column pruning (#64698)
close pingcap/tidb#64697
2025-12-08 15:39:29 +00:00
de5c55394f parser: Improve add more table options for compatibility (#64772)
close pingcap/tidb#64771
2025-12-05 09:37:20 +00:00
2042309765 planner,executor: fix cannot dump plan replayer when query happen to panic (#64836)
close pingcap/tidb#64835
2025-12-04 12:13:41 +00:00
5ee17f4a1d *: support for partition table and common handle for index lookup push down (#64839)
ref pingcap/tidb#62575, close pingcap/tidb#64594, close pingcap/tidb#64595
2025-12-04 09:07:23 +00:00
tpp
7d124185db planner: flaky test TestIssue25729 (#64774)
ref pingcap/tidb#63501
2025-12-02 18:41:29 +00:00
9b517a1b66 expression: replace equal condition by true when to constant propagation (#64309)
close pingcap/tidb#64216
2025-11-26 09:04:17 +00:00
47d17123d6 expression,planner: move planner-specific functions out of expression (#64675)
ref pingcap/tidb#63856
2025-11-26 01:16:05 +00:00
3082092531 planner, session: resolve uppercase/lowercase mismatch for database names in metrics (#64529)
close pingcap/tidb#64560
2025-11-24 06:45:20 +00:00
a97f75ba4b expression,planner: gather both prefix and full index columns at once (#64484)
ref pingcap/tidb#63856
2025-11-21 23:10:05 +00:00
9f3ae48f30 statistics: ignore system tables in stats cache (#64097)
close pingcap/tidb#57176, close pingcap/tidb#64080
2025-11-21 13:31:14 +00:00
tpp
e549c52fca planner: out of range col stats only if loaded (#64582)
close pingcap/tidb#64572
2025-11-20 08:20:50 +00:00
a51c19c1ff planner, gcworker, executor: remove unused code (#64496)
close pingcap/tidb#61967
2025-11-19 10:57:44 +00:00
tpp
52cb3dc3b4 planner: bug fix for compareCandidates (#64525)
ref pingcap/tidb#64378
2025-11-18 11:29:35 +00:00
95a28edc4d planner: fix hint index_lookup_pushdown may affect other hint even pushdown is not allowed (#64520)
close pingcap/tidb#64519
2025-11-18 04:27:05 +00:00
3328284abc privileges,planner: implement checks for RESTRICTED_USER_ADMIN for granting privileges and roles (#64297)
close pingcap/tidb#64295
2025-11-17 11:48:02 +00:00
tpp
e10a603ea1 planner: Adjust risk assessment for plan choice (#64419)
close pingcap/tidb#64378
2025-11-15 10:37:22 +00:00
8c2781681a ddl,tables: only write the index when it meets partial index condition (#62762)
close pingcap/tidb#62761
2025-11-12 04:37:38 +00:00
57948d90e8 statistics: refresh stats concurrently (#64034)
close pingcap/tidb#61273
2025-11-10 11:36:44 +00:00
9c74c61a56 planner: fix wrongly identify the changes in the expression and skip the plan cache (#64265)
close pingcap/tidb#64263
2025-11-10 03:15:50 +00:00
4b3e59a05b *: fix incorrect rlike when quering information_schema (#64301)
close pingcap/tidb#64249
2025-11-07 17:29:44 +00:00
856aeef3a0 planner: support recursive writing style like leading((a, b), (c, d)) join order (#63881)
close pingcap/tidb#63253
2025-11-07 10:33:08 +00:00
8b070c2231 planner: fix prefer task logic when enumerate physical limit/topn (#64151)
close pingcap/tidb#63985
2025-11-05 17:02:53 +00:00
1cc2a48d78 planner: update embedded analyze variable name (#64154)
ref pingcap/tidb#63326
2025-11-03 05:35:50 +00:00
a2d42842d2 planner: set an lower-bound for NDV used in out-of-range estimation for EQ conditions when the Histogram is empty (#64139)
close pingcap/tidb#64137
2025-10-31 10:52:35 +00:00
dbcf5a1477 planner: integrate Skyline Pruning into index selection of IndexJoin (#63958)
close pingcap/tidb#63949
2025-10-31 04:04:13 +00:00
0230916041 *: extract column into map in the constant propagation (#64121)
close pingcap/tidb#64128
2025-10-30 05:02:34 +00:00
eaf12833ea importinto: fix some check and external-id not set after SEM v2 introduced (#64170)
ref pingcap/tidb#61702
2025-10-30 00:48:58 +00:00
de1019fde6 planner: remove BuildKeyInfoPortal function pointer (#64174)
ref pingcap/tidb#64048
2025-10-29 17:17:28 +00:00
586cefcbe3 planner: add TPCDS Q64 test case (#59111) 2025-10-28 10:06:28 +00:00
9dc8189afa dxf: add metrics for alert purpose in nextgen (#64100)
ref pingcap/tidb#61702
2025-10-27 07:27:31 +00:00
0982aded20 Cascades optimizer: handle warning messages for inapplicable hints properly (#62737)
ref pingcap/tidb#62328, close pingcap/tidb#62736
2025-10-24 05:41:13 +00:00
b04017c761 planner: optimize column lookups in PrepareIdxColsAndUnwrapArrayType with a map (#64115)
ref pingcap/tidb#63856
2025-10-23 21:45:52 +00:00
0deccbba5f planner: maintain a map of columns by ID in DataSource (#64053)
ref pingcap/tidb#63856
2025-10-23 19:56:04 +00:00