Commit Graph

230 Commits

Author SHA1 Message Date
30cd559fa9 *: refactor sqlexec to support using current session (#32229)
close pingcap/tidb#32233
2022-02-10 18:09:36 +08:00
3738dec53e *: enable the new collation by default (#32016)
ref pingcap/tidb#32015
2022-02-08 12:53:35 +08:00
3c777c4022 statistics/handle: migrate test-infra to testify (#32135)
Signed-off-by: tison <wander4096@gmail.com>
2022-02-07 21:30:52 +08:00
23f7e51ae0 *: Use the new CI script as default (#31752)
close pingcap/tidb#31893
2022-01-27 21:25:13 +08:00
2e1cff73f3 *: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface (#31618)
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
4bda04f15c planner: introduce historical statistic dumping triggered by analyze (#31032)
close pingcap/tidb#18745
2022-01-21 16:35:46 +08:00
465f655889 * : replace fmt.Sprint with strconv (#31718)
ref pingcap/tidb#31716
2022-01-17 15:11:44 +08:00
c6d7ba3a1c statistics/handle: fix some unstable test cases (#31371)
close pingcap/tidb#30822
2022-01-13 13:47:42 +08:00
495525b262 statistics: fix data race and error handling in stats load (#31301)
close pingcap/tidb#31237
2022-01-10 11:23:41 +08:00
849b6ec0cb *: migrate sync.WaitGroup to util.WaitGroupWrapper (#31411)
ref pingcap/tidb#29517
2022-01-08 14:04:37 +08:00
5cd37f0008 session: fix data race in ParseWithParamsInternal (#31058)
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
38355172ee statistics: skip TestLogDetailedInfo (#31223) 2021-12-31 15:54:21 +08:00
072561c85b sessionctx: make tidb_enable_column_tracking off by default (#31204)
close pingcap/tidb#31205
2021-12-31 13:45:51 +08:00
48fce5e15c *: sync wait stats loading for stable plan (#30026) 2021-12-31 10:35:50 +08:00
8085c99ddf *: implement analyze predicate columns (#30816)
close pingcap/tidb#31102
2021-12-30 15:45:50 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00
fb03dacbca *: periodically dump column stats usage into disk (#31072) 2021-12-28 21:27:51 +08:00
3de13842b3 test: control log level with environment variables (#30871) 2021-12-24 17:03:48 +08:00
23c71f1a3b execute: don't transform charset in internal sql (#30843)
close pingcap/tidb#30789
2021-12-20 17:15:46 +08:00
daf525a17e *: replace compareDatum by compare, range part (#30710) 2021-12-16 19:48:36 +08:00
1e5e86920d test: merge serial tests in bindinfo, expression, parser and statistics (#30749) 2021-12-16 18:40:37 +08:00
0c7528a425 statistics: avoid deadlock when create/drop extended stats and analyze at the same time (#30566) 2021-12-15 20:28:35 +08:00
0d0805d67e statistics: remove reassignment of Handle.pool in NewHandle (#30675) 2021-12-15 10:34:36 +08:00
2f42f7c0f6 planner: unify the argument of stats functions to use SessionCtx instead of StatementContext (#30668) 2021-12-14 19:36:35 +08:00
ac25e9f04c statistics: add mutex for Handle.globalMap and Handle.feedback (#30550) 2021-12-14 18:22:35 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
1f26870ccb *: migrate sync.WaitGroup to util.WaitGroupWrapper (#30644) 2021-12-13 12:04:34 +08:00
b6c45af75a planner: fix the unstable test TestAnalyzeGlobalStatsWithOpts/2 (#30576) 2021-12-09 16:17:58 +08:00
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