Commit Graph

83 Commits

Author SHA1 Message Date
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
4d5dd323d9 *: the result of admin show ddl ... shows a job‘s start time (#5517) 2018-01-04 10:50:35 +08:00
427b02e00a ddl: support alter table auto_increment (#5472) 2017-12-27 13:41:33 +08:00
cbceac701d *:fix the bug about auto-increment key after renaming a table from old DB to the another DB (#5248) 2017-11-29 15:31:16 +08:00
cd914b6611 plan, executor: remove NeedHandle field (#5144) 2017-11-21 15:20:24 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
6a8225787f *: update job state name (#4818) 2017-10-19 14:44:57 +08:00
1a987dd825 *: Support the operation of cancel DDL jobs (#4753)
* *: support cancel the DDL job
2017-10-18 22:28:04 -05:00
3e125a4ccb ddl: Add the txn entry limit (#4458) 2017-09-07 13:27:30 +08:00
881d76840b plan,executor: calculate generated columns in CRUD. (#3951) 2017-08-23 14:52:43 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
059f6dd2f1 executor, expression, plan: remove rowMeta from row (#3758) 2017-08-04 18:37:31 +08:00
584a0c32dc model, distsql: add unit tests (exclude distsql/xeval) (#3806) 2017-07-20 23:16:20 +08:00
a19ad3f480 ddl: support create index with type and comment (#3814) 2017-07-20 19:01:14 +08:00
def034cf6f ranger: add a more common method to calc range. (#3489) 2017-06-21 14:10:40 +08:00
4f56ece779 *: a little fix and add 3 functions. (#3486) 2017-06-20 14:45:12 +08:00
444983cdfd *: Fix a DDL bug about wait time (#3498)
* *: fix a DDL bug about wait time
2017-06-20 11:30:22 +08:00
3b9e5de9a5 *: Remove the useless code about DDL owner info (#3472)
* *: remove useless code about the ddl owner
2017-06-15 12:32:27 +08:00
9575deeb10 ddl: add more features about generated column. (#3431)
DESC table_with_generated_column;
SHOW CREATE TABLE table_with_generated_column;
If generated expression in DDL references bad column, throw error;
If alter table change/drop column dependent by other columns, throw error;
if alter table change/modify generated columns, throw error if needs.
2017-06-13 18:53:58 +08:00
f9114342ea add comment (#3328) 2017-05-24 21:43:22 +08:00
9a9db91f63 plan: move range calculation to package ranger (#3208) 2017-05-09 02:12:39 -05:00
c32145639e fix comments mistake in model (#3183) 2017-04-29 07:27:00 -05:00
9f17a88377 fix some typo in comments (#2943) 2017-03-29 08:55:49 +08:00
fb9cd85e2e *: Speed up the add columns phase (#2769) 2017-03-07 20:11:29 +08:00
b277b613f7 model: fix ddl data race (#2708) 2017-02-22 18:18:06 +08:00
bb2aace0d6 ddl: Fix the bug that showing status row count is 0 (#2696) 2017-02-21 21:01:14 +08:00
417122af42 ddl: save original schema ID for allocator when rename table. (#2671)
Fixes a bug that renamed table to another database failed to insert.
2017-02-17 22:19:00 +08:00
87f51736ee *: support the statement of alter table alter column set default (#2608) 2017-02-08 15:03:27 +08:00
76bf890f0b ddl/model: fix ddl log format (#2599) 2017-02-07 09:12:31 +08:00
217c26bd0b *: Support the statement of rename table (#2444) 2017-01-15 00:58:10 +08:00
99b3465c1e ddl: allocate column ID and index ID in TableInfo. (#2205) 2016-12-09 12:31:27 +08:00
f5792b5e80 *: the first setp of adding the field of history information in job structure (#2170) 2016-12-07 18:29:37 +08:00
1056c56df1 ddl: support modify column (#1930)
* ddl: support modify column
2016-11-08 15:20:41 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
1f1a60c02a *: improve log (#1944)
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
b4e3e58693 *: Clean up (#1928)
* ddl: remove useless code, add and update comments
2016-11-03 11:40:14 +08:00
d04dea2c57 *: use schema diff to reduce memory allocation (#1858)
When schema version has changed, we don't need to reload all schemas, only
modified table need to be reloaded, this will reduce the pressure on Go garbage collector.

Also removed used map in *inforSchema.
2016-10-24 15:17:44 +08:00
037dc11f43 ddl: Cancel DDL job when the key is exist (#1844) 2016-10-22 20:52:45 +08:00
662cb41a1f ddl: write DDL binlog when DDL is done. (#1850)
Previous implementation write DDL binlog as early as when job is added to the queue,
but DDL may be canceled, we should not sync the ddl at that time, there would be a long
 time waiting for the DDL to be done.

After this commit, DDL binlog is written right before the DDL job is done, so we don't need to wait.

Also expose a 'GetAllHistoryJobs' method in meta which will be used later.
2016-10-20 14:03:33 +08:00
b399060118 ddl: truncate table by DDL operation. (#1766)
Currently, truncate table deletes rows in table in one large transaction,
too large transaction is very likely to fail.
This commit use DDL to do the work, it returns instantly, old data will be
deleted by background worker.
2016-09-29 14:22:02 +08:00
6e87d52cfc *: use defer (#1781) 2016-09-29 13:54:07 +08:00
0cbbec594c model: show RowCount value after the operation of admin show ddl (#1780) 2016-09-29 13:24:47 +08:00
5df5085e33 *: Add row count field in a job, fix a drop schema bug and pass race (#1759) 2016-09-28 18:11:40 +08:00
dde36a141f *: Convert string to terror in DDL Job (#1699)
* *: convert string to terror
2016-09-09 09:58:40 +08:00
e687f908d3 *: tiny clean up (#1404) 2016-07-07 09:50:45 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
d04b0b997c *: support index length (#1350)
For string columns, indexes can be created that use only the
leading part of column values, using col_name(length) syntax
to specify an index prefix length
2016-07-02 13:26:40 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
b51ab763df plan: support limit pushdown (#1105)
* plan: support limit pushdown
2016-04-20 13:32:20 +08:00
0537b67d2b *: Add more info into TableInfo and fix bug in show create table (#1072)
Fix: https://github.com/pingcap/tidb/issues/1061
2016-04-09 15:59:51 +08:00