Commit Graph

51 Commits

Author SHA1 Message Date
cc722546ef ddl:support alter table drop partition (#6460)
support alter table drop partition
2018-07-11 18:26:19 +08:00
9ec13e8898 table/tables: modify AddRecord to handle table partition (#6684)
If table partition is used, AddRecord will add records to the
partition, according to the partition definitions.
2018-06-11 11:06:36 +08:00
f6a3c3f0a5 fix typo (#6738) 2018-06-03 23:28:15 +08:00
fbba541156 *: move basic functions and definitions to model package, to make constructing dag request more easier. (#6652) 2018-05-26 20:39:22 +08:00
a4715d5d75 *: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm (#6625) 2018-05-24 15:56:02 +08:00
a37695f1e7 model: adding a variable to aovid compatible issue (#6586) 2018-05-21 14:27:42 +08:00
3324d3b33c admin: admin show ddl jobs add tableName, schema name (#6276) 2018-05-06 20:53:08 +08:00
7266631988 parser: trying to fix maxvalue list (#6309) 2018-04-20 15:53:17 +08:00
0d7a71cf16 executor: support table partition in show create table stmt (#6292) 2018-04-16 22:10:56 +08:00
533fac12b8 *: support create table with range type table partition. (#6251) 2018-04-12 21:56:27 +08:00
a46480c830 *: export implicit rowid and use it in CRUD (#5984) 2018-03-15 16:35:58 +08:00
46e2d3e1cf plan: get correct columns (#5846) 2018-02-12 15:39:10 +08:00
1d07320c66 *: support create time in information_schema (#5590) 2018-01-22 13:33:20 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +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
881d76840b plan,executor: calculate generated columns in CRUD. (#3951) 2017-08-23 14:52:43 +08:00
059f6dd2f1 executor, expression, plan: remove rowMeta from row (#3758) 2017-08-04 18:37:31 +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
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
fb9cd85e2e *: Speed up the add columns phase (#2769) 2017-03-07 20:11:29 +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
99b3465c1e ddl: allocate column ID and index ID in TableInfo. (#2205) 2016-12-09 12:31:27 +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
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
c3bdfb1fed stmt/stmts: insert use primary key value as record ID 2015-12-25 21:02:52 +08:00
56ff3d3000 model, ddl: add PKIsHandle field in TableInfo. 2015-12-25 20:29:21 +08:00
1a28ff83a0 Merge remote-tracking branch 'origin/master' into shenli/index-id
Conflicts:
	ddl/ddl.go
	kv/index_iter.go
2015-11-27 14:28:59 +08:00
b9135eadb4 *: Add ID to IndexInfo and use IndexID in prefix instead of IndexName 2015-11-24 21:58:26 +08:00
4eb34f69ce *: distinguish write/delete reorganization state.
we must distinguish different reorganization state after write only/
delete only state.
2015-11-11 13:29:06 +08:00
xia
01213eb729 model: rename meas to means 2015-11-04 15:47:28 +08:00
xia
87e7c0a2a6 *: rename reorgnization to reorganization 2015-11-04 14:40:36 +08:00
a815babeaa ddl: typo and clean up a bit 2015-10-27 10:56:17 +08:00
c906fea41b model: Address comment. 2015-10-26 17:37:21 +08:00
26bf34c9da *: Address comment 2015-10-24 11:57:35 +08:00
500f5c7cde *: add base ddl job worker framework 2015-10-23 15:01:18 +08:00
b647f8fba4 *: add schema lease feature 2015-10-23 09:50:54 +08:00
791f0d6f78 *: refactor with meta API. 2015-10-21 14:46:58 +08:00
55c452221c model: tiny clean up. 2015-10-07 13:02:03 +08:00