Commit Graph

166 Commits

Author SHA1 Message Date
e522e35faf statistics: fix row count when not fully loading ver2 stats (#25388) 2021-06-15 15:20:37 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
11716e7f4a *: use full sampling as default analyze (#25132) 2021-06-06 00:34:27 +08:00
11f68a9d28 planner: skip some unstable test cases (#25155)
* fixup
2021-06-04 17:33:19 +08:00
a37a30b883 planner: try to fix some unstable test cases about partition table statistics (#25026) 2021-06-03 15:27:29 +08:00
3e3f9778ad statistics: fix the top-n size to not hold the small things (#24906) 2021-06-03 14:28:27 +08:00
7811bf9a37 *: use pprof profile to collect CPU time group by SQL and plan digest (#24892) 2021-06-02 12:51:39 +08:00
9b5d92ef24 statistics: fix the unexpected estimation error on full sampling (#24623) 2021-05-26 18:47:34 +08:00
66ad36ee10 planner, executor, statistics: support correlation calc for new sampling method (#24458) 2021-05-25 23:57:34 +08:00
xhe
bfdad7c752 *: milisecond test and infoschema fix (#24820) 2021-05-24 18:27:34 +08:00
a2278dfdf5 oracle: simplify timestamp utilities (#24688) 2021-05-20 02:53:41 +08:00
18cbfaac15 *: enable gosimple linter (#24617) 2021-05-14 09:15:38 +08:00
3fed33fc17 statistics: dump FMSketch to KV only for partition table with dynamic prune mode (#24453) 2021-05-11 12:47:38 +08:00
xhe
5e9e0e6e37 *: consitent get infoschema (#24230) 2021-05-10 21:00:36 +08:00
18d519f056 stats, executor: use a correct sampling to collect stats (#23997) 2021-05-02 23:11:51 +08:00
6b0b74e5be statistics: fix three bugs about MergePartTopN2GlobalTopN (#24370) 2021-04-29 19:31:57 +08:00
80a281350d statistics: fix err check (#23001) 2021-04-23 12:39:54 +08:00
734084fa2b statistics: skip reading mysql.stats_histograms if cached stats is up-to-date (#24175) 2021-04-22 17:37:54 +08:00
77577d823e executor, statistics: remove NULL value from column histogram created by fast analyze (#24183) 2021-04-21 20:09:55 +08:00
720c47e4b8 *: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0 (#23931) 2021-04-16 23:39:51 +08:00
f4cacb59be statistics: add more tests for extended stats (#23895) 2021-04-16 11:35:52 +08:00
bd12ea96cc statistics: use index fm-sketches instead of bucket NDV to calculate global NDV for indexes (#23962) 2021-04-15 14:59:55 +08:00
dbd31ad044 statistics: make the global-level topN more accurate (#23862) 2021-04-12 12:06:34 +08:00
3a1dd7a665 statistics: collect FMSketch when processing index analyze tasks (#23838) 2021-04-09 15:40:18 +08:00
e18cab75e2 Revert "*: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0" (#23929) 2021-04-09 15:05:26 +08:00
759a77c447 executor: do not show extended stats for dropped columns (#23828) 2021-04-07 16:40:33 +08:00
6cff35892c *: don't allocate SessionIndexUsageCollector when indexUsageLease equals 0 (#23861) 2021-04-07 14:18:16 +08:00
6fd925fdfe statistics: print log when tidb marks extended stats as deleted internally (#23834) 2021-04-06 11:19:24 +08:00
c637388e3f statistics: fix a statistics GC problem that can cause duplicated fm-sketch records (#23830) 2021-04-02 17:10:43 +08:00
xhe
149440854e statistics: sort the test result, stable tests (#23564) 2021-03-26 21:45:23 +08:00
b11c71d23e MPP: fix 2-phase agg chose wrong partition column during planning (#23557) 2021-03-26 17:49:23 +08:00
490c9386fb statistics: optimize the global histogram merging algorithm (#23520) 2021-03-26 15:40:59 +08:00
919e50db15 statistics: remove the dependency of stats GC on LastUpdateVersion (#23413) 2021-03-25 19:58:05 +08:00
3ea3c392b7 statistics: check duplicate columns and types for extended stats (#23437) 2021-03-25 19:38:45 +08:00
42141084fe statistics: fix auto analyze log information incomplete (#23522) 2021-03-25 15:51:23 +08:00
b1b375e7ef statistics: fix some unstable tests in global stats (#23502) 2021-03-24 16:11:37 +08:00
b1c8ede13f *: hide index-usage-sync-lease config (#23349) 2021-03-22 18:47:36 +08:00
c8e07b845a statistics: fix build extended stats panic when met NULL (#23346) 2021-03-22 15:11:36 +08:00
1d5a81edb3 statistics: handle drop partition events for global-stats (#23343) 2021-03-22 14:29:36 +08:00
514a4ee671 statistics: remove existing deleted extended stats when add a new one (#23119) 2021-03-19 17:59:36 +08:00
389bc5fe60 sessionctx: hide extended stats variable in SHOW VARIABLES temporarily (#23345) 2021-03-18 14:03:36 +08:00
61075d3c5b planner: hide the switch of dynamic-pruning and global-stats (#23320) 2021-03-16 10:54:55 +08:00
1e2f1c0b9d statistics: add tests for global-stats when add and delete a single partition (#23256) 2021-03-12 15:44:20 +08:00
6d258c708a statistics: delete extended stats cache item in current tidb synchronously (#23088) 2021-03-12 12:00:55 +08:00
2258ab7267 statistics: add multi-column index test cases for global-statas (#23265) 2021-03-12 11:20:06 +08:00
c1b8347425 statistics: add a test case which builds global-stats on different versions of partition-stats (#23231) 2021-03-11 14:14:58 +08:00
168ef8878d statistics: test the auto analyze and feedback for the global-level stats (#23181) 2021-03-10 19:36:55 +08:00
b6db4506dc statistics: update the count and modify variables of global-stats as well when dumping delta info (#23228) 2021-03-10 16:24:55 +08:00
6f763574c9 statistics: test tidb_partition_prune_mode session variable (#23176) 2021-03-10 13:59:36 +08:00
579cf90afa statistics: fix a case that auto-analyze is triggered outside its time range (#23214) 2021-03-09 21:44:54 +08:00