Commit Graph

140 Commits

Author SHA1 Message Date
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
592469352e ddl: Support ALTER DATABASE Placement Policy/ DirectOptions (#27894) 2021-10-09 14:25:25 +08:00
fd3730577d ddl: move modify-column job to add-index job queue (#27748) 2021-09-08 10:50:57 +08:00
b35c7bc6e4 ddl: Support the operation of dropping multi-indexes in one statement (#20457) 2021-09-02 15:14:15 +08:00
22034c5bcd ddl: support alter table TABLE_NAME engine=xxxx (#27484) 2021-08-23 23:06:04 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
f9652b26f2 executor: migrate TestBatchInsertWithOnDuplicate to testify (#26712) 2021-08-05 02:45:08 +08:00
1ca5b1450e util/admin: migrate admin test to testify (#26318) 2021-07-21 21:00:13 +08:00
05bedf7cc0 util: fix can use invisible index after admin check table (#26233) 2021-07-15 16:41:33 +08:00
c6680e999b *: update client-go and update mocktikv usages (#25911) 2021-07-09 10:57:32 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
9f8175743f *: refine some error messages (#24767) 2021-06-03 21:14:26 +08:00
b7c22aa31d kv: remove UnionStore interface (#24625) 2021-05-13 21:29:39 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
24c9df147d *: refactor table.Table interface, clean up unnecessay methods (#22430) 2021-03-02 19:48:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
ea6ccf82e9 *: refactor the RestrictedSQLExecutor interface (#22579) 2021-01-29 12:56:44 +08:00
d184120a99 ddl: use kv.Key as reorg progress marker instead of kv.Handle (#20908) 2020-11-11 18:47:23 +08:00
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
6342fa6a50 ddl: fix corrupted default value for bit type column (#18036) 2020-10-04 12:59:40 +08:00
0528a1f12f *: handle the to-do item of rebuilding ReorgInfo key when executing modify/change column (#19866) 2020-09-27 08:34:36 +08:00
b7364a317b *: add rollbacking logic for column type change (#19531) 2020-09-15 17:23:00 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00
eff7837795 executor: support 'recover index' in clustered index tables (#19284)
* support 'recover index' in clustered index table

* ddl: add truncate to buildCommonHandleFromChunkRow

* executor: truncate the updated handle

* executor: set core.HandleCols in the initialization of RecoverIndexExec

* refine code

* remove unused code

* fix integration test

* fix integration test

* address comment

* early return when recovering clustered pk

* remove panic

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:51:52 +08:00
c7c98d7380 ddl: add addingDefinition field for adding partition replica check (#18495) 2020-07-29 17:08:26 +08:00
baf6c99b95 *: fix a bug causes indexed virtual generated column return wrong value and refine admin check table (#18408) 2020-07-24 12:59:47 +08:00
761a961ba0 kv: refactor MemBuffer and reduce the memory usage (#18372) 2020-07-15 15:26:25 +08:00
a6971dd685 *: support 'admin check table' on clustered index table (#18346) 2020-07-14 15:59:37 +08:00
3f6f36f742 *: refactor table.IterRecord and extract some methods (#18214)
* *: refactor table.IterRecord and extract some methods

* fix ci test

* fix ci test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-29 09:24:34 +08:00
7daa4a7f88 *: fix bugs that creating index on clustered index table or table with the virtual generated column (#18114) 2020-06-19 19:58:37 +08:00
6c305e2a49 ddl: apply common handle to index reorganization (#17906) 2020-06-16 09:52:39 +08:00
f82bd008d4 ddl: correct the usage of json.Unmarshal in job.DecodeArgs (#17857)
* ddl: correct the usage of json.Unmarshal in job.DecodeArgs

* update parser

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-10 11:00:54 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
8ea2ed03e7 session: Move OptimizerUseInvisibleIndexes from SmtmCtx to SessionVars (#17040) 2020-05-09 08:41:05 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
30f6f32708 tests: abstract Cluster interface for introducing new mock... (#16940) 2020-04-30 10:46:55 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
90bfe841ae server: add drop/truncate table tiflash replica info in /tiflash/replica http api (#15699) 2020-04-24 16:00:48 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
1c73deca59 ddl: add syntax for setting the cache step of auto id explicitly. (#15409) 2020-04-10 15:57:51 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
750583c665 *: use iterator in show ddl jobs to avoid oom when there is too many history ddl jobs. (#12472) 2020-02-10 22:56:05 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
b25c82452f ddl: support drop sequence in TiDB (#14442) 2020-01-20 15:49:04 +08:00
f036eecc9d ddl: support create/drop expression index (#14117) 2020-01-07 10:29:39 +08:00