Commit Graph

563 Commits

Author SHA1 Message Date
8370cab551 planner: rename BuildLogicalPlan to BuildLogicalPlanForTest (#27606) 2021-08-26 18:42:05 +08:00
7e624445f4 statistics: fix two unstable tests (#27430) 2021-08-20 21:18:02 +08:00
bc5c912f85 statistics: some refactoring about stats collector (#26583) 2021-08-18 01:39:59 +08:00
a0de91fa06 statistics: fix a error check to prevent nil dereference (#27295) 2021-08-17 17:04:00 +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
09ebd0d703 planner: fix wrong selection push down when having above agg (#27021) 2021-08-16 20:29: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
73bb7dd2c6 *: Annotations and fixes related to gosec (#26907) 2021-08-09 22:27:15 +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
83181c6bcb planner: steady expression index selection when having duplicate expressions (#25826) 2021-08-02 14:47:06 +08:00
4eeff54d85 statistics: fix the fomula for checking outdated stats (#26728) 2021-07-29 22:34:17 +08:00
0974cb415b statistics: not to convert small range into points when estimate rowcount using v2 stats (#26695) 2021-07-28 18:58:18 +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
8945d64362 planner: fix the panic that the index's range length may exceed its original column count (#25267) 2021-06-18 12:04:38 +08:00
74055f7f0e statistics, executor: fix new collation for analyze version 2 (#25311) 2021-06-17 01:32:37 +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
2e083b40e5 statistics: support indexes containing virtual column for full sampling (#24999) 2021-06-04 16:18:28 +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
32cf14bd7d statistics: relax the check of the OutOfRange (#24958) 2021-06-02 22:16:25 +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
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +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
ae7346fc64 statistics: introduce the weighted reservoir sampling (#24089) 2021-04-22 16:43: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