Commit Graph

4818 Commits

Author SHA1 Message Date
ad53ac2625 config: add unit test for assert tidb_stats_cache_mem_quota (#34633)
ref pingcap/tidb#34052
2022-05-13 18:28:36 +08:00
b8ea8b6e29 planner: strengthen the cases the join reorder can apply (#34603)
close pingcap/tidb#34590, close pingcap/tidb#34591
2022-05-13 16:40:36 +08:00
856e82ad6a txn: add methods to handle error for TxnManager (#34489)
close pingcap/tidb#34533
2022-05-13 16:00:37 +08:00
5ca242761c executor: add test cover Analyze task for evicted index (#34622)
ref pingcap/tidb#34052
2022-05-13 14:46:35 +08:00
1c6dcf0913 planner: support push window function down to tiflash (#31601)
Issue Number: close #33072
2022-05-13 14:12:28 +08:00
0703a64f76 planner: plan cache always check scheme valid in RC isolation level (#34523)
close pingcap/tidb#34447
2022-05-13 10:42:35 +08:00
c6fe032e99 br: support PiTR feature (#34409)
ref pingcap/tidb#29501
2022-05-12 17:08:35 +08:00
bbd7541322 *: refine 'tidb_snapshot' behavior (#34573)
close pingcap/tidb#34529
2022-05-11 20:54:34 +08:00
50f3d8faf8 *: retry auto-analyze with adjusted samplerate when oom panic (#34387)
close pingcap/tidb#29938
2022-05-11 18:08:34 +08:00
3637d41120 executor: fix processlist's Mem is not zero when HashJoin finished (#34569)
close pingcap/tidb#34571
2022-05-11 17:40:34 +08:00
218247e80e *: improve stack message in the panic log (#34564)
close pingcap/tidb#34356
2022-05-11 16:34:34 +08:00
a58e519055 *: change mysql.analyze_jobs.instance column type (#34542)
close pingcap/tidb#34543
2022-05-11 11:14:34 +08:00
53f228af45 sysvari: enable statsCache lru by config (#34278)
* add statsquota variable

Signed-off-by: yisaer <disxiaofei@163.com>

* add test

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

* fix conflict

Signed-off-by: yisaer <disxiaofei@163.com>

* address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

address the comment

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

* fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

* fix duplicated plan

Signed-off-by: yisaer <disxiaofei@163.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-05-10 23:49:54 +08:00
33236ba8d7 *: track analyze memory usage separately with quota (#33054)
ref pingcap/tidb#29938, close pingcap/tidb#33065
2022-05-10 20:32:35 +08:00
73f3435346 ddl: move some admin function to ddl (#34527)
close pingcap/tidb#34526
2022-05-10 18:14:34 +08:00
adebe4452b executor: fix time filter condition when select from information.slow_query_log (#34322)
close pingcap/tidb#34320
2022-05-10 10:56:33 +08:00
c16291392a *: replace types.NewFieldTypeBuilder() API with NewFieldTypeBuilderP() to avoid misuse (#34494)
close pingcap/tidb#34490
2022-05-09 22:00:33 +08:00
9f15cac7a7 planner: fix the explain verbose to be NOT case insensitive (#34471)
close pingcap/tidb#34469
2022-05-09 15:44:33 +08:00
b1379a61b5 executor: release memory usage of task in indexJoin/indexHashJoin (#34418)
close pingcap/tidb#34417
2022-05-09 15:16:33 +08:00
6c30303937 session: refine non-transactional delete (#34273)
ref pingcap/tidb#33485
2022-05-09 13:30:34 +08:00
685de0e099 ddl: fix recover table will still push table state even if meet error (#34410)
close pingcap/tidb#34438
2022-05-09 11:02:33 +08:00
2258bc54c4 txn: Add EnterNewTxn and OnStmtStart methods to TxnManager (#34263)
close pingcap/tidb#34390
2022-05-07 21:02:32 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
4b917c47ec util/codec: Fix analyze table for partitioned table with datetime column and version 1 (#34228) (#34364)
close pingcap/tidb#34228
2022-05-05 20:18:56 +08:00
4e21680458 log: avoid panic on unknown log format (#34360)
close pingcap/tidb#34359
2022-05-04 10:14:54 +08:00
698a4ffe00 *: move config file option query-log-max-len to sysvar (#34305)
ref pingcap/tidb#33769
2022-05-04 00:46:54 +08:00
dd01b5586e util: improve stack message in the panic log (#34357)
close pingcap/tidb#34356
2022-05-03 11:28:53 +08:00
6d8669e987 *: Add support for GET_LOCK() / RELEASE_LOCK() / RELEASE_ALL_LOCKS() (#33947)
close pingcap/tidb#14994
2022-04-29 23:12:53 +08:00
0d5ac6f3cb sysvar, config: mapping config settings to system variables. (#33279)
ref pingcap/tidb#32887
2022-04-29 13:20:52 +08:00
d42cf6ad4d session: add parser failed error to sessionVars.StmtCtx (#34311)
close pingcap/tidb#34276
2022-04-29 13:06:53 +08:00
91cb86e3cf domain, sessionctx/variable: make code DRY (#33897)
close pingcap/tidb#33896
2022-04-28 20:26:52 +08:00
42089cd9e3 statistics: separte Get/Put according to query for statsCacheInner (#34211)
ref pingcap/tidb#34052
2022-04-28 18:04:52 +08:00
d22cd59da4 planner: refactor the cost implementation for Aggs (#34227) 2022-04-27 20:12:39 +08:00
591c2050a7 planner: let apply be paralleled though there's order property can be used (#34238)
close pingcap/tidb#34237
2022-04-27 11:22:51 +08:00
f16f0e844d executor: use sys session to build view for info_schema.columns retrieval (#33946)
close pingcap/tidb#32459
2022-04-26 20:02:51 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
b119f2620a table: fix NO_ZERO_DATE not work for insert into select statement (#34101)
close pingcap/tidb#34099
2022-04-26 18:10:51 +08:00
fb342ff861 topsql: fix issue of topsql failed catch the running SQL when topsql is enabled in execution (#33861)
close pingcap/tidb#33859
2022-04-26 13:16:51 +08:00
20a58199cf *: move config file option mem-quota-query to sysvar (#34141)
ref pingcap/tidb#33769
2022-04-26 03:58:50 +08:00
aa1fe9d8c6 *: refine some tests for concurrent DDL (#34215)
ref pingcap/tidb#33008
2022-04-25 17:14:50 +08:00
d23a81488a *: Move stale read context to TxnManager (#33812)
close pingcap/tidb#31954, close pingcap/tidb#33014, close pingcap/tidb#33832
2022-04-25 16:52:51 +08:00
d3a02f416a executor: flush statement should trigger implicit commit (#34134)
close pingcap/tidb#34180
2022-04-24 17:38:48 +08:00
e6d55e14fa executor/infoschema_reader.go: skip the unidentifiable table-attributes (#34129)
close pingcap/tidb#33665
2022-04-22 14:08:04 +08:00
886dc81f17 executor: fix label of rollback stmt counter (#34160)
close pingcap/tidb#34161
2022-04-22 09:58:04 +08:00
02de667042 testkit: add MockSessionManager (#34124)
ref pingcap/tidb#31716
2022-04-21 12:14:04 +08:00
571d97bb16 planner: using the funcdep to check the only_full_group_by (#33567)
ref pingcap/tidb#29766
2022-04-21 00:44:04 +08:00
a5033d14d0 *: use global auto analyze ID in order to kill auto analyze globally (#34075)
close pingcap/tidb#34076
2022-04-20 17:58:03 +08:00
669b9bcd36 validation: fix set readonly variable max_allowed_packet should return error (#33658)
close pingcap/tidb#32349
2022-04-20 09:02:02 +08:00
d63a5fd33d executor: add some memory tracker in HashJoin (#33918)
ref pingcap/tidb#33877
2022-04-19 23:28:03 +08:00
212a6b22af planner: introduce the new cost interface (#33990) 2022-04-19 14:03:09 +08:00