Commit Graph

5492 Commits

Author SHA1 Message Date
86a6694de0 bindInfo: fix datarace on bindings (#40846)
close pingcap/tidb#40843
2023-01-30 19:59:55 +08:00
fd5e67581b planner: add a switch control if prepare stmt with param limit can be cached (#40712)
ref pingcap/tidb#40219
2023-01-30 12:01:54 +08:00
fe4a81df82 sessionctx: add validation for tidb_enable_plan_replayer_continues_capture (#40787) 2023-01-29 17:15:54 +08:00
4686338d0e ttl: add table mysql.ttl_job_history to store ttl job histories (#40655)
close pingcap/tidb#40654
2023-01-29 10:19:53 +08:00
26ca0401d9 executor: add foreign key and session variable test (#40785)
close pingcap/tidb#40784
2023-01-28 19:13:53 +08:00
55361cf75c linter: find inappropriate key in call to context.WithValue (#40769)
close pingcap/tidb#40796
2023-01-28 18:03:53 +08:00
bca433fcab planner: remove pickFromBucket field in LRUPlanCache (#40668)
ref pingcap/tidb#36598
2023-01-28 16:41:53 +08:00
76153ab9ff lint: update config of deprecated linter (#40763)
ref pingcap/tidb#40786
2023-01-28 11:57:53 +08:00
de856d9354 store/copr: move row hint into key range (#40105)
ref pingcap/tidb#39361
2023-01-19 22:57:50 +08:00
dc30a5b7b3 *: LOAD DATA support load one file from s3 and other OSS (#40489)
ref pingcap/tidb#40499
2023-01-18 15:27:51 +08:00
5cb64fd09a executor: fix buildTableReaderForIndexJoin on partition table (#40674)
close pingcap/tidb#40596
2023-01-18 11:59:50 +08:00
971deb6202 *: add a new I_S table and support show create for resource groups (#40665)
close pingcap/tidb#39781
2023-01-17 23:37:49 +08:00
22746c0068 privilege,planner/core: add dynamic privilege RESOURCE_GROUP_ADMIN for resource group operation (#40632)
ref pingcap/tidb#38825
2023-01-17 20:47:49 +08:00
faffcd90f8 test: add more foreign key test (#40650)
close pingcap/tidb#40649
2023-01-17 15:47:48 +08:00
4620df6a8d executor,store/copr: trace the buildCopTask and limitExec close duration when it's slow (#40579)
ref pingcap/tidb#40441
2023-01-17 11:11:48 +08:00
aa51b46ead executor: fix concurrent use of testkit in tests and add nil check (#40627)
close pingcap/tidb#40206
2023-01-16 22:29:49 +08:00
03e192b6c4 privileges: add missing items for show privileges | tidb-test=pr/2066 (#40600)
close pingcap/tidb#40591
2023-01-16 14:51:48 +08:00
ee6d291f4e planner: fix prepare explain index out of range bug (#40568)
close pingcap/tidb#38323
2023-01-16 11:25:48 +08:00
5e291ec127 executor: fix 'ADMIN SHOW DDL JOB QUERIES LIMIT m OFFSET n' may return multiple lines (history jobs) with same job id (#39248)
close pingcap/tidb#39233
2023-01-13 19:13:48 +08:00
b61932461b ttl: submit ttl scan task to the system table (#40422)
close pingcap/tidb#40362, ref pingcap/tidb#40363
2023-01-13 15:51:46 +08:00
17c0d5481b executor: support set resource-group-name for kv request (#40237)
ref pingcap/tidb#38825
2023-01-13 14:13:46 +08:00
338fd30fc9 ddl: reimplement get flashback cluster related key ranges (#40460)
close pingcap/tidb#40318, close pingcap/tidb#40477
2023-01-13 13:47:46 +08:00
b1ecabb559 txn: Optimize pessimistic transaction by supporting locking with conflict (#35588)
close pingcap/tidb#40537
2023-01-13 11:09:46 +08:00
bd7fb08838 distsql: fix a bug of ranger.Range to kv.KeyRange conversion (#40204)
close pingcap/tidb#40158
2023-01-13 10:17:46 +08:00
b8e5460a84 *: add new global variable tidb_enable_resource_control as a switch (#40440)
ref pingcap/tidb#38825
2023-01-12 22:01:46 +08:00
fbc38f8b7f planner: correctly handle expression.ScalarFunction in the buildSemiJoinForSetOperator (#40390)
close pingcap/tidb#40279
2023-01-12 19:07:52 +08:00
26dab31068 ttl: support float number and store ttl_job_interval in info schema (#40509)
Signed-off-by: YangKeao <yangkeao@chunibyo.icu>

Signed-off-by: YangKeao <yangkeao@chunibyo.icu>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 16:42:34 +08:00
df019ae5ba parser: use identifier as user's resource group name (#40479)
* parser: use identifier as user's resource group name and also fix a drop resource group bug

Signed-off-by: BornChanger <dawn_catcher@126.com>

* executor: fix case

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: format parser.y

Signed-off-by: BornChanger <dawn_catcher@126.com>

* *: fix store function of resource group

Signed-off-by: BornChanger <dawn_catcher@126.com>

Signed-off-by: BornChanger <dawn_catcher@126.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-12 15:50:34 +08:00
7beec04214 sysvar: add switch for plan replayer capture using historical stats (#40492)
* add switch

* fix

* fix

* fix

Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 19:44:33 +08:00
cefb26146b executor: fix issue of KEY_COLUMN_USAGE table return wrong result about foreign key column (#40491)
Signed-off-by: crazycs520 <crazycs520@gmail.com>

Signed-off-by: crazycs520 <crazycs520@gmail.com>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 19:08:33 +08:00
caffd8d6c5 ttl: forbid creating/altering a table with TTL options when pk contains float/double column (#40487)
* ttl: forbid create/alter a table with TTL options when pk contains float/double column

* format

* update

* update

* update

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 16:22:33 +08:00
668881fac5 executor: add partition table testcase for historical stats (#40453)
* add partition table testcase

* add partition table testcase

* fix lint

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-11 15:46:33 +08:00
45d71af649 ddl: support displaying sub-job reorg type in admin show ddl (#40387)
close pingcap/tidb#40386
2023-01-10 12:50:22 +08:00
e2a14ce0f2 planner: unify the behavior of prepare/execute limit to mysql (#40360)
ref pingcap/tidb#40219
2023-01-10 11:14:23 +08:00
0f838d9a67 planner, executor: split the range for unsigned pk of partition table when limit is used (#40313)
close pingcap/tidb#40309
2023-01-09 18:36:22 +08:00
83ec4b03f3 executor: support insert ignore/duplicate replace into with unique multi-valued index (#40369)
close pingcap/tidb#40207
2023-01-09 16:30:22 +08:00
b477b1c946 *: Supports create/alter/drop resource group (#40188)
ref pingcap/tidb#38825
2023-01-09 13:44:22 +08:00
4a8006cad2 planner: fix panic during starting tidb-server if creating global binding for partition table (#40402)
* fix

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2023-01-09 13:18:27 +08:00
2d755a818c executor: fix data race at the ShowExec (#39817)
close pingcap/tidb#39816, close pingcap/tidb#40295
2023-01-09 11:20:22 +08:00
f9f72688fb *: fix static pruning partition table in disaggregated tiflash mode (#40238)
close pingcap/tidb#40239
2023-01-06 19:28:21 +08:00
f600fc694f executor: reset the related session vars for both INSERT and REPLACE (#40354)
close pingcap/tidb#40351
2023-01-06 18:56:21 +08:00
b226dfcb05 ttl: add ttl_job_interval attribute and remove tidb_ttl_job_interval variable (#40033)
close pingcap/tidb#40028
2023-01-06 17:56:21 +08:00
b8490bc9ac domain: let plan replayer dump support recording stats mem status (#40334) 2023-01-06 15:30:21 +08:00
e1a2b58655 ddl: fill in original default for extra writable columns in batch insert (#40198)
close pingcap/tidb#40192
2023-01-06 09:46:20 +08:00
331f69f52d planner,infoschema,executor: Add tiflash fine grained shuffle support for hash join and aggregation (#40121)
close pingcap/tidb#40123
2023-01-06 09:24:20 +08:00
669ba5cbae *: add warnings to slow log and slow query table (#39884)
ref pingcap/tidb#39893
2023-01-05 23:34:21 +08:00
affe126097 *: support curdate() as column's default value | tidb-test=pr/2057 (#40326)
close pingcap/tidb#38356
2023-01-05 16:14:20 +08:00
5eea731db0 util: use go-deadlock to find deadlock (#40288)
close pingcap/tidb#40293
2023-01-05 15:10:20 +08:00
d0272703f3 statistics: support historical stats dump partition table (#40310) 2023-01-05 11:52:20 +08:00
6ae151a9bc planner: open the partial order prop push down for LIST PARTITION (#40290)
close pingcap/tidb#40273
2023-01-04 17:24:20 +08:00