Commit Graph

662 Commits

Author SHA1 Message Date
47e4b5bf31 *: revert #27021 to fix a bug that selection can not be pushed down when having clause above aggregation (#33168)
close pingcap/tidb#33166
2022-03-17 10:43:53 +08:00
128dc16820 statistics: fix load stat for new collation column (#33146)
close pingcap/tidb#31765
2022-03-16 17:29:53 +08:00
c11e650527 *: make golangci-lint work on Go1.18 (#33081)
close pingcap/tidb#33080
2022-03-15 22:43:52 +08:00
824f43408f statistics: add a more accurate upper bound to exponential backoff estimation strategy (#32848)
ref pingcap/tidb#22589, ref pingcap/tidb#32758
2022-03-14 17:21:51 +08:00
9fcc6b090b statistics: correctly check if a column histogram is loaded (#32764)
close pingcap/tidb#31925, ref pingcap/tidb#32758, close pingcap/tidb#32833
2022-03-13 15:51:50 +08:00
62b2e5cdd6 statistics: skip impossible values when estimating row count (#32762)
ref pingcap/tidb#32758, close pingcap/tidb#32834
2022-03-10 16:37:50 +08:00
62e20780e8 *: kill auto analyze (#31724)
close pingcap/tidb#32808
2022-03-07 13:49:48 +08:00
7cf784cf26 statistics: handle contants in Selectivity() (#32761)
ref pingcap/tidb#32758, close pingcap/tidb#32835
2022-03-06 23:41:48 +08:00
c9a7e7d4bc statistics: refactor code structure for histogram buckets and clamping row counts (#32760)
ref pingcap/tidb#32758
2022-03-04 19:07:47 +08:00
fc6b939ecc planner: introduce historical meta stats auto-dump (#32041)
ref pingcap/tidb#18745
2022-03-03 19:05:47 +08:00
09324adc13 handle_test: fix unstable test in the TestConcurrentLoadHistTimeout (#32622)
close pingcap/tidb#32580
2022-02-25 16:47:43 +08:00
5988d0b2f4 *: update client-go and etcd version (#32457)
close pingcap/tidb#32456
2022-02-22 11:11:43 +08:00
c102b6b25a statistics: fix data race (#32448)
close pingcap/tidb#32426
2022-02-18 16:07:40 +08:00
4548f12b1c *: clean sqlexec in statistics handle (#32282)
close pingcap/tidb#32238
2022-02-16 16:55:39 +08:00
2f0c23da24 executor: migrate test-infra to testify for stale_txn_test (#32285)
close pingcap/tidb#28618
2022-02-14 16:49:38 +08:00
10a721a4f7 statistics: remove the deltaMap when dump to stats_histograms fail (#32300)
close pingcap/tidb#32299
2022-02-14 16:07:38 +08:00
7c56706622 *: support predeclared golangci-lint linter (#32066)
close pingcap/tidb#30733
2022-02-14 10:35:38 +08:00
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
c30e8320d8 *: correct use require (#31904)
ref pingcap/tidb#31716
2022-02-07 18:11:35 +08:00
23f7e51ae0 *: Use the new CI script as default (#31752)
close pingcap/tidb#31893
2022-01-27 21:25:13 +08:00
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
203ab22982 *: move the functions that only used in tests (#31929)
ref pingcap/tidb#28720
2022-01-24 22:08:11 +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
375b71b501 stats: resolve the constant selectivity when handling DNF exprs (#31242)
close pingcap/tidb#31096
2022-01-07 18:28:38 +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
69b358a5e5 statistics, util/ranger: use the correct collators when record ce trace (#31207) 2021-12-31 11:59:50 +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
9a074f1dbe *: use the real StateRemote interface implementation for cached table (#30066) 2021-12-10 16:55:57 +08:00