Commit Graph

202 Commits

Author SHA1 Message Date
7aa86cc96a *: Enable gosec for implicit memory aliasing in for loop (#28996) 2021-11-19 20:07:48 +08:00
61c2a98b8d *: disable parallel to avoid data race when test (#29739) 2021-11-15 17:47:06 +08:00
26c7dcfc44 statistics: migrate test-infra to testify for statistics/handle/dump_test.go (#29627) 2021-11-11 13:49:06 +08:00
4cee7a358b statistics: remove redundant assignment for statistics.Column.Count (#27773) 2021-11-10 17:25:06 +08:00
883b79c29e statistics: migrate test-infra to testify for statistics/handle/ddl_test.go (#29284) 2021-11-07 18:29:03 +08:00
731902de58 statistics: migrate test-infra to testify for statistics/handle/gc_test.go (#28301) 2021-11-03 17:49:01 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
afa7dfb10f executor: also use approximate count from pd to decide the sample rate (#29230) 2021-11-01 11:08:51 +08:00
c0024d7490 statistics: add GC for mysql.column_stats_usage (#29183) 2021-10-29 13:24:49 +08:00
b1efb13296 *: implement analyze columns c1, ..., cn (#29024) 2021-10-29 11:28:49 +08:00
86b37d45d1 statistics: fix incomplete auto analyze log information (#29189) 2021-10-28 19:54:49 +08:00
04e661095c planner, statistics, sessionctx: add variable to enable/disable the outdated statistics to pseudo logic (#28554) 2021-10-28 11:28:48 +08:00
98c7bbd368 *: support show column_stats_usage (#28428) 2021-10-21 18:34:46 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
9f094cc865 statistics: fix auto analyze triggered out of specified time (#28703) 2021-10-11 17:53:25 +08:00
9a62f05503 statistics: migrate test-infra to testify for statistics/handle/update_list_test.go (#28208) 2021-09-21 14:06:45 +08:00
8e25f8eee4 statistics: use ExecuteInternal instead of Execute in (*Handle).initTopNCountSum (#27879) 2021-09-10 22:46:39 +08:00
490b5c63d1 statistics: skip build statistics for view in auto analyze (#27866) 2021-09-08 21:38:58 +08:00
36a191bc16 planner: fix the unstable test TestAnalyzeGlobalStatsWithOpts (#27734) 2021-09-06 18:58:58 +08:00
7e624445f4 statistics: fix two unstable tests (#27430) 2021-08-20 21:18:02 +08:00
d06fd67764 statistics: fix "data too long" error when dumping stats from table with new collation data (#27033) 2021-08-17 16:02:00 +08:00
e4dcef943c planner: do not merge the generated column stats to global stats (#27256) 2021-08-16 21:53: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
b974e5fbc4 test: fix unstable test TestAnalyzeGlobalStatsWithOpts2 (#26921) 2021-08-05 15:49:13 +08:00
cb65b7a2f7 statistics: improve out-of-range estimation strategy (#26502) 2021-08-02 17:43:08 +08:00
4eeff54d85 statistics: fix the fomula for checking outdated stats (#26728) 2021-07-29 22:34:17 +08:00
50ae2d8266 statistics: trigger auto-analyze based on histogram row count (#24382) 2021-07-28 18:02:17 +08:00
95a40ac3d4 planner: fix the unstable unit test TestAnalyzeIncremental (#26460) 2021-07-23 14:16:14 +08:00
2b192e3149 topsql: refine collect information for DDL and internal SQL (#26047) 2021-07-15 16:13:36 +08:00
9f0bd37cbe statistics: avoid lock leak if error happens when reloading stats (#24753) 2021-07-12 17:27:32 +08:00
787772d874 stats: fix auto analyze panic (#25987) 2021-07-06 22:21:29 +08:00
420e27ebfa *: update count / modify_count of mysql.stats_meta incrementally (#24720) 2021-07-02 19:05:26 +08:00
8a0be6181b statistics: skip dumping nil histograms for virtual columns in analyze (#25789) 2021-06-28 16:55:25 +08:00
a9daa4a006 *: Fixed some linter check errors (#25608) 2021-06-26 10:05:23 +08:00
149e86ac4b *: introduce snapshot into analyze (#24575) 2021-06-25 15:17:24 +08:00
78f33e692a statistics: fix two unstable tests (#25487) 2021-06-23 15:49:22 +08:00
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