Commit Graph

61 Commits

Author SHA1 Message Date
2e39aacbda ddl, table: fix Duplicate partition field in list partition (#31953)
close pingcap/tidb#31784
2022-01-25 18:06:11 +08:00
fac8bf384f *: Remove variable tidb_enable_alter_placement (#31066)
* *: Remove variable `tidb_enable_alter_placement`
2022-01-06 11:19:39 +08:00
b9d9f19bd1 *: forbid set tiflash replica count for a placement table (#30844)
close pingcap/tidb#30741
2021-12-20 16:47:46 +08:00
a0f7643e3f *: forbid set TiFlash Replica for a table with unsupport charset (#30162) 2021-11-30 15:55:53 +08:00
b57c1e1cab ddl: forbit alter table cache in system db (#29998) 2021-11-24 10:05:50 +08:00
4063e9c2e6 ddl: add support create or replace placement policy (#29865) 2021-11-18 14:17:47 +08:00
dbea9892c4 *: Remove old syntax ALTER TABLE ... ADD/REMOVE/ALTER PLACEMENT POLICY ... (#29603) 2021-11-10 01:19:06 +08:00
01e4bdd723 ddl : ddl forbid partition table switch into cache and add view feature test (#29256) 2021-11-01 19:00:51 +08:00
42067720e9 ddl: Ensure feature flag support for placement rules [2] (#29258) 2021-11-01 10:34:51 +08:00
9dc4630b47 *: make expression index as experimental feature (#28307) 2021-10-30 00:40:51 +08:00
46b87acf2e ddl: support all engine for temporary tables (#28815) 2021-10-18 19:54:42 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
8d66cb4618 ddl: forbid dropping placement policy which is in use (#28057) 2021-09-17 10:48:42 +08:00
6aec001345 ddl: support table placement option (#27799) 2021-09-07 22:54:57 +08:00
90626b8a49 ddl, expression: fix some string functions' flen and refine error message for expression index (#27376)
* done

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-08-20 21:13:58 +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
a9cba7c8e8 ddl: refine some error messages related to generated column and expression index (#26844) 2021-08-04 13:03:06 +08:00
cc64519feb ddl: forbide some ddl operations for local temporary table (#26643) 2021-08-04 11:57:06 +08:00
bff152a286 ddl: refine error message for expression index (#26798) 2021-08-02 19:43:06 +08:00
0f32f3614d *: remove expression index out of experimental index (#26791) 2021-08-02 19:31:06 +08:00
17523d3da8 ddl: support alter table attributes to add a label rule (#26511) 2021-07-30 17:21:05 +08:00
7a188f6b34 ddl: fix create/alter table with duplicate fk name (#26453) 2021-07-23 10:40:14 +08:00
9321489621 ddl, executor: fix test race in terror (#25405) 2021-06-15 13:16:36 +08:00
79669921ff ddl: add region and split compatibility for temporary table (#24684) 2021-05-25 13:17:33 +08:00
d5e0ed0aae ddl: ban the setting replica for tables in system database (MySQL) (#24745) 2021-05-24 22:13:33 +08:00
e167b26e11 ddl: grammar check for create unsupported temporary table (#24723) 2021-05-21 11:28:21 +08:00
bc4a38c9b9 ddl: add partition compatibility for temporary table (#24406) 2021-05-06 20:27:52 +08:00
8c897b1f33 partition: check partition definition with unsigned option (#23428) 2021-03-23 19:31:37 +08:00
bc37f088ba *: fix some varcheck lint warnings (#23011) 2021-03-01 15:10:54 +08:00
8357f809ff *: remove some useless codes and do tiny update (#22972) 2021-02-26 19:14:53 +08:00
9e3c0649e4 ddl, session: add tidb_enable_exchange_partition variable (#22638) 2021-02-03 20:36:57 +08:00
7ea8102185 planner: Add table engine name check (#21110) 2020-12-09 15:56:06 +08:00
a3a248160f ddl: check partition definition correctly in list partition (#21309) 2020-12-08 14:10:48 +08:00
fb80822390 ddl: return an error if the alter table option is invalid (#21392)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-01 14:27:18 +08:00
094b462b44 ddl: check the expression in partition definition and refactor code (#21325) 2020-11-30 11:12:00 +08:00
863117ba05 session: Check the partition placement constraint of local transactions (#21039)
Signed-off-by: Song Gao <disxiaofei@163.com>
2020-11-17 14:28:27 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
2c8b28c37b ddl: forbid invalid usage of window function in the generated column (#20855)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-06 12:06:32 +08:00
6e1aa0d765 *: restrict the length of enum/set value (#19109) 2020-11-04 19:10:02 +08:00
64698ef9a3 ddl: fix create table too many indexes (#20353) 2020-10-23 11:46:43 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
xhe
e3a4ccf949 ddl: supports transitions between time types (#19988)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-10-20 21:20:04 +08:00
afd223c32b ddl: support create list partition table (#20279) 2020-10-15 20:24:24 +08:00
a8dea3a2a1 ddl: refine error message for expression index (#20337) 2020-10-09 17:11:40 +08:00
789581bf29 parser: disallow subquery without table alias (#19102) 2020-10-09 15:53:40 +08:00
5ad75fd215 ddl, executor: add error for functional index cannot refer to an auto-increment column (#20336)
Signed-off-by: lihaowei <haoweili35@gmail.com>
2020-10-09 08:14:40 +08:00
57b244e9e0 ddl, errno: fix expression index allows row function (#19987)
Signed-off-by: wangggong <793160615@qq.com>
2020-09-30 16:23:54 +08:00
42eaaa590d *: move backfillWorker code to backfilling.go, update logs and comments (#19503) 2020-09-02 15:48:38 +08:00
xhe
e75683c2ee ddl: align placement syntax implementation to RFC (#18957) 2020-08-07 11:37:53 +08:00
32a4805090 ddl, core: fix parser issue 602 (#17995)
* ddl, errno: add TableOptionUnion related error, errcode and errname

* core: add TableOptionUnion grammar check when creating/altering table

* ddl, errno: add TableOptionInsertMethod related error, errcode and errname

* core: add TableOptionInsertMethod grammar check when creating/altering table

* ddl_test: add test

* ddl_test: mv test to TestCreateTable

* remove unnecessary lines

* core: check for unsupported table options

Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-21 23:26:20 +08:00