56 Commits

Author SHA1 Message Date
187eba37ca executor, util/memory: keep global analyze memory usage non-negative (#65503)
close pingcap/tidb#65502
2026-01-13 16:29:24 +00:00
69a1b2ce8e session: fix memory leak when sessions close after ANALYZE statements (#65492)
close pingcap/tidb#65489
2026-01-09 22:24:40 +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
tpp
170254e4cb planner: avoid int range for no PK predicates (#64847)
ref pingcap/tidb#64791
2025-12-08 21:22:05 +00:00
d87685d431 executor: split executor test into other package (#63739) 2025-09-26 16:17:10 +00:00
414668a7e4 *: fix some test cases for next-gen (#63571) 2025-09-17 13:42:48 +00:00
tpp
19e01029d3 planner: flaky test cleanup (#63500)
ref pingcap/tidb#63501
2025-09-15 03:55:45 +00:00
48c83f84bf *: skip analyze v1 test for the next-gen (#63444) 2025-09-10 11:37:31 +00:00
0f99d77540 *: skip analyze v1 test for the next-gen (#63437) 2025-09-10 04:50:24 +00:00
9bcae5eff7 *: replace failpoint.Enable with testfailpoint.Enable (#63295) 2025-09-01 06:53:58 +00:00
215f779264 planner: filter generated columns that depend on skipped columns (#62968)
close pingcap/tidb#62465
2025-08-18 16:04:38 +00:00
d82d2baa0f bazel: update settings and close some race on tests (#63009) 2025-08-15 09:07:31 +00:00
4230cf349b *: replace GetTableStats with GetPhysicalTableStats (#62790)
ref pingcap/tidb#62685
2025-08-11 10:22:54 +00:00
3fc9a4af1b *: upgrade go and rules_go (#62871)
close pingcap/tidb#62872
2025-08-07 10:54:09 +00:00
102ffeccba mdl/sessionmanager: some refactor of MDL loop and move sessionmanager from util to session pkg (#62671)
ref pingcap/tidb#61702
2025-07-29 12:55:28 +00:00
tpp
f77056099f planner: ensure topN counts adjust for samplefactor (#61637)
close pingcap/tidb#61609
2025-06-13 03:54:55 +00:00
tpp
61e061e08c planner: selectivity estimate not to go below 1 (#61045)
ref pingcap/tidb#47400
2025-05-13 01:42:12 +00:00
34afcbb9d3 executor: gopls modernize (#60787)
close pingcap/tidb#60786
2025-05-07 14:32:26 +00:00
0e150fc770 statistics: improve handling for slow stats updates and logging (#59887)
close pingcap/tidb#54552
2025-03-17 11:21:58 +00:00
cf4d252af8 *: split definition out of variable pkg and refactor some reorg methods (#59146)
ref pingcap/tidb#57229, ref pingcap/tidb#57497
2025-01-23 09:24:44 +00:00
a5d2d28d01 statistics: fix the potential error when merging global stats (#52218)
close pingcap/tidb#52251
2025-01-22 09:20:20 +00:00
b2f2faaa95 parser: move 'model' to 'ast' pkg (#58704)
ref pingcap/tidb#54436
2025-01-07 10:20:04 +00:00
bf939fa79a *: don't handle live updates of column size (#58596)
close pingcap/tidb#58595
2025-01-06 19:42:49 +00:00
27b53925b2 *: use DDL subscriber updating stats meta (#57872)
close pingcap/tidb#57871
2024-12-13 10:44:06 +00:00
5caa238b83 planner: use collected predicate columns to do stats sync load (#56813)
close pingcap/tidb#56812
2024-11-12 14:38:50 +00:00
bb9f4d185e statistics: avoid using infoschema when to init stats (#54514)
close pingcap/tidb#55851
2024-09-30 02:14:39 +00:00
b02581a7a4 *: fix data race in the EnableAnalyzeSnapshot (#55596)
close pingcap/tidb#55469
2024-08-23 03:01:43 +00:00
db54a3bb27 *: fix cannot get column info from generate column (#55447)
close pingcap/tidb#55438
2024-08-19 07:04:41 +00:00
686f8bc383 statistics: move history-related functions into the stats handle (#55163)
ref pingcap/tidb#55043
2024-08-07 09:30:40 +00:00
7e73ddc91b statistics: add metrics for unneeded analyze table (#54822)
close pingcap/tidb#54823
2024-07-26 01:36:06 +00:00
06e0e17d98 *: fix ctrl+c can not kill tidb during statistics init (#54594)
close pingcap/tidb#54589
2024-07-15 09:26:59 +00:00
e5a8a23e83 *: enable the predicate columns feature by default (#54440)
ref pingcap/tidb#53567
2024-07-12 09:23:28 +00:00
f490a98438 *: add context.Context parameter to infoschema TableByName (#54479)
ref pingcap/tidb#50959
2024-07-09 16:04:33 +00:00
aeea03d21c planner: include both indexes and columns in job info (#54336)
ref pingcap/tidb#53567
2024-07-03 10:59:57 +00:00
91bf3323d6 executor: un-skip TestAnalyzeMVIndex (#54372) 2024-07-02 01:59:56 +00:00
0d0fb4d19d planner: respect tidb_analyze_column_options when build analyze plan (#54240)
ref pingcap/tidb#53567
2024-06-28 10:57:01 +00:00
3e1ee9ec62 statsistics: unexport the Columns and Indices of HistColl (#53768)
close pingcap/tidb#53666
2024-06-27 12:53:54 +00:00
tpp
8ee4897b39 planner: reduce topn count to exclude non-skewed values (#53035)
close pingcap/tidb#53111
2024-06-19 05:37:17 +00:00
100aa05042 sysvar: tidb_enable_column_tracking only takes effect when tidb_persist_analyze_options is turned on (#53481)
close pingcap/tidb#53478
2024-05-23 12:07:17 +00:00
0ed511a84b planner, stats: reduce the persist memory usage of stats after startup (#47496)
close pingcap/tidb#46867
2024-03-14 14:09:41 +00:00
715399f321 executor: fix flaky test TestAnalyzeClusteredIndexPrimary (#51670)
close pingcap/tidb#51649
2024-03-11 11:26:11 +00:00
caf83ed930 statistics: add last_analyze_version for mysql.stats_meta (#51489)
ref pingcap/tidb#49594
2024-03-11 08:06:38 +00:00
671e980340 statistics: build the table analysis job queue (#51045)
ref pingcap/tidb#50132
2024-02-22 07:21:27 +00:00
51e1e13494 *: update interface{} to any (#50770)
ref pingcap/tidb#50765
2024-01-29 07:21:29 +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
bf166d9c5d planner, statistics: support estimation for mv index access path (#49852)
close pingcap/tidb#46539
2024-01-05 06:51:34 +00:00
2d7d83d297 planner: re-enable analyze for mv index and code prepare for estimation (#49937)
ref pingcap/tidb#46539
2024-01-02 09:26:01 +00:00
3b41717afc statistics: do not use the infoSchema from domain directly (#49822) 2023-12-28 04:11:06 +00:00
a7ef915052 *: upgrade rules_go (#49693) 2023-12-27 02:15:28 +00:00
92f071afeb executor: fix hang when the analyze worker unexpectedly exits (#48365)
close pingcap/tidb#48356
2023-11-08 13:38:11 +00:00