Commit Graph

2561 Commits

Author SHA1 Message Date
ed04e267e7 ddl: fix enable metadata lock (#41913)
close pingcap/tidb#41796
2023-03-08 20:11:12 +08:00
29adb0aa86 ddl: Increase ddl unit test speed (#41034)
close pingcap/tidb#41216
2023-03-07 18:57:12 +08:00
0a57d81e9c sysvar: enable resource control by default (#41963)
close pingcap/tidb#41962
2023-03-07 15:33:11 +08:00
cb7ce7d973 ddl: fix check unique multi-valued index (#41910)
close pingcap/tidb#41907
2023-03-07 12:17:12 +08:00
bea1a0a1c6 planner: don't lock schema if an error happens (#41896)
close pingcap/tidb#41797
2023-03-06 21:25:11 +08:00
17bbc2961b *: support resource_group sql hint (#41678)
* *: support resource_group sql hint

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

* *: refine case

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

* *: make case stable

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

* *: code format

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

* *: relocate the cases

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

* *: fix bazel attribute

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

* *: fix bazel

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

* *: code fmt

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

* *: code format

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

* *: address comments

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

* *: address comments for 2nd round

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

* *: polish check logic

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

---------

Signed-off-by: BornChanger <dawn_catcher@126.com>
2023-03-06 18:34:13 +08:00
7be60d9b19 fix create view (#41950)
Signed-off-by: ystaticy <y_static_y@sina.com>
2023-03-06 16:38:49 +08:00
00ccee238a parser: Add special formatter for extract(unit FROM date) (#41875)
close pingcap/tidb#41800
2023-03-04 11:13:10 +08:00
1c1c388d6e ddl: never write untouched index values to temp index (#41879)
close pingcap/tidb#41880
2023-03-02 23:33:13 +08:00
67979fb1e4 ddl: use = to replace with like when querying complete task_key (#41860)
close pingcap/tidb#41579
2023-03-02 15:19:09 +08:00
17c1376f19 br/lightning: change KvPair's row ID type from int64 to []bytes (#41787)
ref pingcap/tidb#37119
2023-03-01 20:15:10 +08:00
fcf01a0b8c ddl: remove unnecessary unique check for ingest mode (#41764)
close pingcap/tidb#41776
2023-02-28 17:23:20 +08:00
87702f8dbc ddl: remove unused field and clean comments (#41757) 2023-02-27 17:23:08 +08:00
1d2040a2ab DDL: Partition table supports key partition type (#41365)
close pingcap/tidb#41364
2023-02-24 22:27:07 +08:00
8ad19ebad6 ddl: refine the error handling for runReorgJob (#41712) 2023-02-24 15:11:07 +08:00
26fc92d5a8 ddl: fix unexpected duplicated error when adding unique index (#41687)
close pingcap/tidb#41630
2023-02-23 21:29:06 +08:00
5cbf6ebd0b executor: enhance global index (#41197)
close pingcap/tidb#40497
2023-02-21 13:51:05 +08:00
71fab020d0 ddl: move some dist-reorg code to dist_* files and add the generate prefix key function (#41577)
close pingcap/tidb#41576
2023-02-20 19:47:06 +08:00
109b3b6bf1 ddl: fix double/float data not being truncated for column modification operations when the number of decimal places is reduced. (#41555)
close pingcap/tidb#41281
2023-02-20 16:47:05 +08:00
21aa40f2b9 partition: check global index when execute create table (#41437)
close pingcap/tidb#40145, close pingcap/tidb#40148, close pingcap/tidb#41447
2023-02-20 11:31:04 +08:00
69a9dec7df ddl: use a param to decide whether exec in distributed mode (#41549)
ref pingcap/tidb#41534
2023-02-17 21:35:04 +08:00
bc95a4f022 *: lock the temp index key properly in DML (#41516)
close pingcap/tidb#41515
2023-02-17 18:19:04 +08:00
cd516088c6 planner: Fix error message for column mismatch on INSERT..SET (#41508)
close pingcap/tidb#41468
2023-02-17 00:20:03 +08:00
9df59ea50a ddl: correct the remain ranges check for adding index (#41460)
close pingcap/tidb#41459
2023-02-16 15:02:10 +08:00
d622c31cf7 ddl: improve the stability of real tikv test of adding index (#41453)
ref pingcap/tidb#41452
2023-02-16 15:02:02 +08:00
c6bd86c132 ddl: ignore reorg elem error when the job is cancelling (#41383)
close pingcap/tidb#41381
2023-02-15 15:56:01 +08:00
a56fa8e08c ddl: make reorgCtx safer to use (#41421)
close pingcap/tidb#41418
2023-02-15 15:06:01 +08:00
0e3f5a8f5f *: bazel upgrade shard_count (#41417) 2023-02-15 12:10:01 +08:00
7ca36a6dc4 ddl: fix cleanup subtasks after cancel add index with dist-reorg (#41372)
close pingcap/tidb#41371
2023-02-15 11:34:02 +08:00
e0620da22f statistics: improve test to make test more fast (#41403)
ref pingcap/tidb#41377
2023-02-14 21:10:01 +08:00
a78ff88c3d *: upgrade golangci-linter (#41317) 2023-02-14 20:54:01 +08:00
95ceffdc42 ddl: set request source for cop requests that are used in adding index (#41401)
close pingcap/tidb#41400
2023-02-14 19:06:10 +08:00
41c1250c26 br: reused table id is disabled when restore a brand-new cluster (#41358)
close pingcap/tidb#41333
2023-02-14 19:06:02 +08:00
70d1f6292c ddl: fix error when setting tidb_enable_ddl (#41298)
close pingcap/tidb#41277
2023-02-13 21:40:00 +08:00
79ae1e3c1f *: update bazel config (#41296) 2023-02-13 14:38:01 +08:00
6a66ed6bb8 ddl: return panic when to get tiflash sync progress failed in test (#41292)
close pingcap/tidb#39949
2023-02-13 13:10:08 +08:00
696d7d06e9 *: REORGANIZE PARTITION (#38535) (#41096)
close pingcap/tidb#38535
2023-02-11 20:28:00 +08:00
8531018f04 ddl: improve backfill more general (#41093)
close pingcap/tidb#41002
2023-02-10 23:52:00 +08:00
caaf66819d ddl: fix owner get panic info with dist-reorg (#41217)
close pingcap/tidb#41208
2023-02-10 20:40:00 +08:00
278a9fec2a ddl: Improve ErrTooLongKey message (#41270)
Prefix indexes are specified in characters while this error message
returns a limit in bytes. By adding the byte length in the message this
is makes it easier to understand.

This would deviate a little bit from the message in MySQL.

Before:
```
sql> CREATE TABLE t1(id int primary key, c1 text, key(c1(1000)));
ERROR: 1071 (42000): Specified key was too long; max key length is 3072 bytes
```

After:
```
sql> CREATE TABLE t1(id int primary key, c1 text, key(c1(1000)));
ERROR: 1071 (42000): Specified key was too long (4000 bytes); max key length is 3072 bytes
```
2023-02-10 11:57:11 +01:00
6cb73749c6 ddl: Add telementry for distributed reorg tasks. (#41201)
ref pingcap/tidb#41266
2023-02-10 17:08:00 +08:00
c6e6d621e2 ddl: check the key existence on original index (#40749)
close pingcap/tidb#40730
2023-02-10 15:22:00 +08:00
a22d690fda ddl, model: support for dist-reorg on partitioned tables (#41145)
close pingcap/tidb#41144
2023-02-09 23:54:08 +08:00
495e225dc7 ddl: fix data race on job.SetWarnings (#41231)
close pingcap/tidb#40751
2023-02-09 21:26:41 +08:00
f5efbbadd1 ddl: initialize the mock session in advanced (#41227)
close pingcap/tidb#40879
2023-02-09 21:26:33 +08:00
1140b7c3b1 *: remove ru token in resource group schema and set brust limit (#41174)
ref pingcap/tidb#38825
2023-02-09 06:55:59 +08:00
ae6054242e ddl: forbid tiflash while enabling API v2 (#41167)
ref pingcap/tidb#41166
2023-02-09 01:41:59 +08:00
85c48edbb6 placement: supports survival preferences (#40613)
close pingcap/tidb#38605
2023-02-08 17:51:59 +08:00
91f675247d flashback: make br backup full works during flashback cluster (#40950)
close pingcap/tidb#40404
2023-02-08 16:15:59 +08:00
3f0964ff9d ddl: disable raw mode resource group (#41050)
close pingcap/tidb#41049
2023-02-08 14:09:59 +08:00