Commit Graph

126 Commits

Author SHA1 Message Date
c6fe032e99 br: support PiTR feature (#34409)
ref pingcap/tidb#29501
2022-05-12 17:08:35 +08:00
93859ddff0 ddl: correct the job.SchemaState in DROP cases (#34235)
ref pingcap/tidb#32939
2022-04-28 12:14:51 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
ffa4ba91e3 parser: turn some functions into member functions of model.Job (#34175)
ref pingcap/tidb#31716
2022-04-24 14:42:49 +08:00
67b073425f ddl: fix inappropriate schema state output by admin show ddl jobs (#33850)
ref pingcap/tidb#23494, close pingcap/tidb#24420
2022-04-11 15:26:34 +08:00
0d7602eb65 *: fix http api document and a comment (#33834)
close pingcap/tidb#33833
2022-04-11 13:50:34 +08:00
be76f885e6 ddl, parser: fix concurrent rename table (#33354)
close pingcap/tidb#32610
2022-04-07 17:48:33 +08:00
c6b47c918f ddl: refactor adjustColumnInfoInAddColumn for multi-schema change (#32820)
ref pingcap/tidb#14766
2022-03-29 17:34:29 +08:00
33e76327ab br: Consider partition table's placement for br (#33139)
ref pingcap/tidb#32290
2022-03-16 20:05:52 +08:00
3f3a061afe ddl: Add CreatePlacementPolicyWithInfo to ddl.DDL (#32986)
close pingcap/tidb#32951
2022-03-11 11:43:51 +08:00
6dbf2de2f0 explain: use partition name in original case (#32817)
close pingcap/tidb#32719
2022-03-07 14:33:48 +08:00
493eb45c75 *: table partition dynamic prune mode with Physical Table ID from unistore (#31634)
close pingcap/tidb#29851
2022-03-04 01:21:46 +08:00
1624123b84 *: fix time zone problems encountered when changing the other type columns to timestamp type columns (#31843)
close pingcap/tidb#29585
2022-02-21 23:11:42 +08:00
c8bef987ae *: support variable tidb_last_ddl_info (#32414)
close pingcap/tidb#32402
2022-02-17 16:43:40 +08:00
c589ee5471 *: remove direct placement from models (#31816)
close pingcap/tidb#31427
2022-01-20 00:47:45 +08:00
e50e03c92c parser, ddl: update the DDL job's Location structure (#31199)
close pingcap/tidb#31212
2022-01-03 14:53:51 +08:00
xhe
4f30a14256 ddl: support batch create table (#28763) 2021-12-31 17:13:50 +08:00
088a2444df *: persist analyze options for manual and auto analyze (#30939) 2021-12-30 00:39:49 +08:00
6e6db1fd35 binlog: allow multiple ddl targets (#30904) 2021-12-24 12:55:47 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
93e2c12346 *: Rename some names of placement ddl operation (#30622) 2021-12-11 00:41:57 +08:00
c08f7fc65c *: show PK name when decoding the clustered index row key (#30623) 2021-12-10 21:53:58 +08:00
28446605c2 expression: fix tidb can't alter table from other-type with null value to timestamp with NOT NULL attribute (#29664) 2021-12-03 15:57:54 +08:00
6898975a7d parser: fix missing charset and collation of handle column (#30320) 2021-12-02 17:05:54 +08:00
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
a90c98816e ddl: fix none info of alter table placement (#29929) 2021-11-24 16:53:53 +08:00
a237e41d9f ddl : support alter table xx nocache operations switch a table into uncacheable (#29621) 2021-11-11 17:19:06 +08:00
17edc5758f parser: add ANALYZE TABLE t ALL COLUMNS syntax (#29361) 2021-11-10 18:17:05 +08:00
49d995d577 *: Remove ALTER TABLE ... ALTER PARTITION ... (#29556) 2021-11-08 18:05:04 +08:00
11b61738f3 parser: migrate test-infra to testify (#29191) 2021-10-28 12:30:49 +08:00
a3f3924388 parser: support analyze/stats options when create/alter table (#29056) 2021-10-27 14:54:49 +08:00
63d5b02496 DDL: Support skip placement validation (#29016) 2021-10-27 13:10:49 +08:00
1777bd0e86 ddl : support alter table xx cache operations (#29022) 2021-10-25 22:08:48 +08:00
1bde14a6e9 *: Finish alter placement for objects (#28982) 2021-10-25 20:54:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
db3b91a0b6 [parser] *: Support syntax of "CREATE/ALTER DATABASE [DEFAULT] PLACEMENT POLICY ..." (#1351) 2021-10-09 14:53:23 +08:00
f4591b0e80 [parser] model: support database placement option and partition placement option (#1342) 2021-10-09 14:53:23 +08:00
fef35aa8df [parser] add placement rules to schema and partition (#1340)
Co-authored-by: Arenatlx <314806019@qq.com>
2021-10-09 14:53:23 +08:00
444f2c51eb [parser] parser: move policyinfo test from tidb to parser (#1330) 2021-10-09 14:53:23 +08:00
d3cff95f9e [parser] model: move placement policy definition into 2 parser (#1327) 2021-10-09 14:53:23 +08:00
1057322cf7 [parser] parser: support create and alter placement policy (#1313) 2021-10-09 14:53:23 +08:00
97cde8c296 [parser] Model: add the new field to the Job Struct. (#1273) 2021-10-09 14:53:23 +08:00
386287d9b4 [parser] Support add/drop attributes for table or partition (#1271) 2021-10-09 14:53:23 +08:00
83a9450089 [parser] Remove useless const AddIndexStr,AddPrimaryKeyStr (#1275)
Signed-off-by: JaySon-Huang <tshent@qq.com>
2021-10-09 14:53:23 +08:00
fd730ec231 [parser] parser: support the 'create global temporary table' syntax (#1211) 2021-10-09 14:53:23 +08:00
c298f32dd3 [parser] ddl: admin show ddl jobs output confusing with multiple jobs (#1210)
* change "none" 2 "queueing"

Signed-off-by: lihaowei <haoweili35@gmail.com>

* 4 review

Signed-off-by: lihaowei <haoweili35@gmail.com>

* restore origin word

* *: change none 2 queueing
2021-10-09 14:53:23 +08:00
xhe
bc860cdd5e [parser] *: fix static check report (#1195)
* ast: base.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: expressions.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: misc_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: digester.go

Signed-off-by: xhe <xw897002528@gmail.com>

* goyacc: format_yacc.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: lexer_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: misc.go

Signed-off-by: xhe <xw897002528@gmail.com>

* model: model.go

Signed-off-by: xhe <xw897002528@gmail.com>

* model: model_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: parser_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* test_driver: test_driver_datum.go

Signed-off-by: xhe <xw897002528@gmail.com>

* test_driver: test_driver_mydecimal.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: ddl.go, bugfix

Signed-off-by: xhe <xw897002528@gmail.com>

* mysql: errcode.go

charset/charset.go is passing errcode to NewStd, which requires int. But
here codes are uint16. To get rid of the error, uint16 is removed.

Signed-off-by: xhe <xw897002528@gmail.com>

* model: better test

Signed-off-by: xhe <xw897002528@gmail.com>

* *: fix timezone

Signed-off-by: xhe <xw897002528@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-10-09 14:53:23 +08:00
8cd0659690 [parser] set right not null flag when newing extra PK (#1189)
* set right not null flag when newing extra PK

* add test

* fmt

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-10-09 14:53:23 +08:00
0ab86feca6 [parser] add ActionType: ActionDropIndexes (#1186) 2021-10-09 14:53:23 +08:00
51f162cf17 [parser] model: add a version for the clustered index (#1172) 2021-10-09 14:53:23 +08:00