Commit Graph

130 Commits

Author SHA1 Message Date
89baed8e17 ddl: scatter the regions of table when creating them (#10980) 2019-07-10 11:09:14 +08:00
6542e4ae94 ddl: add recover for run ddl job (#10981) 2019-07-02 09:08:06 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
9dd32e84c6 *: rename and add tidb_wait_split_region_timeout session variable to set wait split region timeout. (#10797) 2019-06-20 14:57:35 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00
c80a79c4b6 ddl: fix alter table charset bug that change blob column type to text (#10477) 2019-06-04 14:39:28 +08:00
3c31331f9a ddl: fix a data race in the test code (#10520) 2019-05-21 21:30:44 +08:00
2e9ddb2b35 ddl: validate table info before doing ddl job to avoid load infoschema error (#10464) 2019-05-20 19:58:57 +08:00
acf1389f6e ddl: refine ddl change shard_rowid err msg (#10311) 2019-05-11 11:37:35 +08:00
4cf3630eec ddl: pre-split region for partitioned table (#10221) 2019-04-30 12:48:59 +08:00
5f03462166 ddl: add comment for onRebaseAutoID (#10206) 2019-04-28 10:52:04 +08:00
732f4307b8 ddl: add table option pre_split_regions for pre-split region when create table with shard_row_id_bits. (#10138) 2019-04-24 21:56:24 +08:00
95b66e4852 ddl: ddl-owner try to use memory infoSchema to check first (#10170) 2019-04-23 20:56:18 +08:00
27a56180bd *: replace gofail with the new failpoint implementation (#10184) 2019-04-22 13:30:14 +08:00
ed3e265946 ddl: fix alter table share rowid bit problem (#9868) 2019-04-09 18:06:34 +08:00
8c118cecc2 *: clean code for restore table (#9090) 2019-04-08 15:21:37 +08:00
b2c7f083e7 ddl: fix alter table charset bug and compatibility (#9790) 2019-04-04 19:52:58 +08:00
0cafb707ee ddl: using pingcap/log and unify the log format (#9659) 2019-03-19 14:54:42 +08:00
4449eb062a ddl: add ddl job error count limit, exceed the limit should cancel the ddl job (#9295) 2019-02-27 15:03:04 +08:00
8357d0a234 ddl: add err check in table.go (#9385)
fix the errcheck
2019-02-21 16:58:47 +08:00
f46c558a60 ddl,table/tables: handle partition by range column when len(column)=1 (#9082)
create table ... 'partition by range column', when len(column)=1,
the case can be transformed to 'partiton by range'
2019-02-20 17:02:14 +08:00
33a961decf ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs (#9226) 2019-02-18 11:34:13 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
e646276f4b planner,executor: basic support for DROP_VIEW (#8758) 2019-01-04 10:53:02 +08:00
0147e0cece ddl: refine cancel/rollback ddl job code. (#8858) 2019-01-03 17:11:14 +08:00
680368f81d ddl : fix concurrent add partition problem (#8783) 2018-12-29 20:14:39 +08:00
ffa375fdc2 ddl: fix cancel drop table/database ddl job bug. (#8537)
* ddl: fix cancel drop table bugs
2018-12-26 10:34:07 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
4e8c424718 *: basic support for CREATE_VIEW (#8571) 2018-12-18 20:17:27 +08:00
355a6290a1 ddl: fix a data race in unit test TestTableSplit (#8719) 2018-12-18 11:40:00 +08:00
1d7d01cfe8 ddl: support altering the other charset to utf8 or utf8mb4 (#8037) 2018-12-10 12:58:18 +08:00
0b8417614c ddl: support truncate table on hash partitioned table (#8401) 2018-12-03 16:12:41 +08:00
e11859e653 *: support creating a hash partitioned table (#8026) 2018-11-20 16:15:09 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
82c9f2c8a8 ddl, domain: make schema correct after canceling jobs (#7997) 2018-10-25 18:30:58 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
7b8caa1acd ddl: fix reassigned partition id in truncate table does not take effect (#7919)
fix reassigned partition id in truncate table does not take effect
2018-10-23 18:14:47 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
fc80029b2a ddl: partition by range value should accept constant expression (#7442)
In partitioned table definition, the range value maybe not an integer,
it could be a constant expression.
For example, the following two cases are the same:
	PARTITION p0 VALUES LESS THAN (TO_SECONDS('2004-01-01'))
	PARTITION p0 VALUES LESS THAN (63340531200)
2018-08-21 17:13:31 +08:00
d1246b3c91 ddl: notify stats worker when truncate table (#7356) 2018-08-13 13:53:22 +08:00
ade23a02a3 ddl: fix genGlobalID function repetition RunInNewTxn (#7130) 2018-07-23 20:53:14 +08:00
f59f696d23 ddl: add partion function check when create partion table (#7111)
* ddl: add partion func check when create partion table
2018-07-23 20:40:10 +08:00
46e5ff3f41 ddl: support truncate partitioned table and drop partitioned table (#7036) 2018-07-23 13:30:36 +08:00
6663f63534 ddl:check partition count limit when create partitioned table and add partitioned table (#7069)
* check partition count limit when create partitioned table and add partitioned table
2018-07-19 13:53:33 +08:00
9331a079f5 ddl:create table partition value must be strictly increasing (#6912)
* ddl:create table partition value must be strictly increasing
2018-07-09 18:02:48 +08:00
c562bfff6f ddl:support table partition in alter table add partition (#6421)
support alter table add partition
2018-06-26 12:40:51 +08:00
6edbf58f5f ddl: speed up the operation of "create table" (#6861) 2018-06-25 21:06:40 +08:00
42675d97fb ddl: adjust the structure of ddl (#6449) 2018-06-14 17:13:50 +08:00
f56e130eed ddl, parser: support 'ALTER TABLE RENAME KEY TO' syntax (#6475) 2018-06-07 13:32:17 +08:00