Commit Graph

55 Commits

Author SHA1 Message Date
de4612597c transaction: lock unique key for delete operation (#19220)
Signed-off-by: you06 <you1474600@gmail.com>
2020-10-29 12:08:26 +08:00
c8221fab81 ddl: support column type change between decimal && SQL mode warnings (#20012) 2020-09-29 15:56:35 +08:00
438945d294 *: enable clustered index by default (#19582) 2020-08-31 16:54:51 +08:00
127c3aa61d executor: support admin cleanup for clustered index table (#19522)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 11:46:52 +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
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
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +08:00
b923b9e5de util/admin: support admin cleanup index on the partition table (#17203) 2020-05-26 13:13:40 +08:00
2bdf6a01cc util/admin: support admin check index on partition table (#17183) 2020-05-25 21:25:33 +08:00
4078eb4ae5 util/admin: support admin recover index on the partition table (#17195) 2020-05-20 17:10:44 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
dad33fff9d exec: remove duplicate auto-generated test cases (#14910) 2020-02-24 15:54:07 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
4dfbb14c51 *: tidy code && prealloc some slice for performance (#13468) 2020-01-02 17:26:10 +08:00
cbf7415873 *: add errcode for structure, tablecodec, admin files (#14054) 2019-12-16 12:07:02 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
5886055b6b ddl: fix error code and error name (#13329) 2019-11-12 17:23:18 +08:00
9ed376ada2 util/admin: support admin check table on partition table (#12796) 2019-10-29 20:16:37 +08:00
9b0334601a executor: speed up test (#12896) 2019-10-23 21:11:21 +08:00
bc997d7035 executor: split test for speed up (#12881) 2019-10-23 12:58:29 +08:00
2307338ae7 planner: generate index path as candidate when it is a single scan (#12022) 2019-09-09 19:13:41 +08:00
576cdcdd0d executor: fix data race of "admin check table" (#11568) 2019-08-01 18:52:59 +08:00
59e3eb75cd *: speed up the operation of "admin check table" (#8572) 2019-07-31 17:11:30 +08:00
088603f1df ddl: prohibit modification decimal precision to avoid inconsistency problem (#10433) 2019-05-14 13:29:40 +08:00
873d9514bc expression: move FindIndexByName to parser (#9951) 2019-04-01 13:36:49 +08:00
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
818ec911c5 admin: fix admin check table err when add column not null, then add index on the column (#9108) 2019-01-20 22:44:10 +08:00
ffd9ba6659 gc_worker: Remove timezone name from the times that are saved in mysql.tidb (#8745)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2018-12-27 12:16:18 +08:00
98b96cc769 executor: speedup unit tests by spliting them into separate suites (#8618) 2018-12-24 21:37:12 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
f085f4fee4 admin: admin check table/index using tidb_snapshot (#8172)
* admin: admin check table/index support snapshot
2018-11-22 12:21:53 +08:00
f3a9745e2c executor: support for "admin show next_row_id" (#8242) 2018-11-09 22:08:42 +08:00
5831de291d *: enable range typed table partition (#8011) 2018-10-26 20:04:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
bb8ba440e8 admin: fix admin check table compare bug (#7818) 2018-09-30 11:42:06 +08:00
4a444efa9a ddl: fix add index on timestamp column bug (#7724) 2018-09-20 15:49:10 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00
1afd12762d plan: fix admin check index panic when index contains pkIsHandle column. (#7350) 2018-08-14 17:29:56 +08:00
d1f2587903 *: admin check table return tidb specific error code. (#7363) 2018-08-14 13:54:16 +08:00
88bf9f7ba0 admin: support prefix index in admin check table. (#7241) 2018-08-06 11:57:46 +08:00
55d8eff758 executor: fix admin cleanup index for non-unique handles in a unique index (#7248)
* fix one handle to multi unique indices
2018-08-02 17:23:14 +08:00
5f7abc84fe *: fix panic that upgrade from old version TiDB. (#7136) 2018-07-24 18:59:29 +08:00
8c4e733ff3 executor: support 'admin check table' statement for table partition (#7087) 2018-07-19 00:08:32 +08:00
44e34bd304 *: index refactor for table partition (#7062) 2018-07-17 14:01:50 +08:00
b812cb517e expression, util: DecodeDecimal return real precision and frac (#6732) 2018-06-08 15:37:32 +08:00
64e3acadee admin: admin check table do not use the timezone of session, it leads to false alarm. (#6699) 2018-06-04 14:14:04 +08:00
a4715d5d75 *: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm (#6625) 2018-05-24 15:56:02 +08:00