Commit Graph

74 Commits

Author SHA1 Message Date
bba8f9579c [parser] model: Add StateGlobalTxnWriteOnly (#1104) 2021-10-09 14:53:23 +08:00
61d4863dab [parser] model: add functionality to check if a base table (#1080) 2021-10-09 14:53:23 +08:00
ed62659e39 [parser] *: add alter table read only/write support (#1095) 2021-10-09 14:53:23 +08:00
4d239a8573 [parser] *: tiny optimize for huge partition table (#1072)
* *: tiny optimize for huge partition table

Signed-off-by: crazycs520 <crazycs520@gmail.com>

* Update model/model.go

Co-authored-by: kennytm <kennytm@gmail.com>

Co-authored-by: kennytm <kennytm@gmail.com>
2021-10-09 14:53:23 +08:00
eb188bac29 [parser] ddl: support multiple table rename (#1021) 2021-10-09 14:53:23 +08:00
xhe
527317804e [parser] model: add an extra field on Job for passing argumens (#1052) 2021-10-09 14:53:23 +08:00
fca01d8347 [parser] ddl: *support list column partition table (#1042) 2021-10-09 14:53:23 +08:00
0c0b9d0e05 [parser] model: add SQL mode and warnings field for ddl job (#1031) 2021-10-09 14:53:23 +08:00
090d5ccc98 [parser] model: support add extra partition ID column (#1010)
define ExtraPidColID
add NewExtraPartitionIDColInfo to support create extra pid column
2021-10-09 14:53:23 +08:00
7a64b806d6 [parser] model: support columar table (#1000) 2021-10-09 14:53:23 +08:00
0b129de5dd [parser] model: add DroppingDefinitions for PartitionInfo (#970) 2021-10-09 14:53:23 +08:00
ebb56dd2c8 [parser] model: fix null origin default value for bit column (#983) 2021-10-09 14:53:23 +08:00
96f79a6832 [parser] model: add replica only type to string (#978) 2021-10-09 14:53:23 +08:00
aa4be370de [parser] model: add ChangeStateInfo to ColumnInfo (#966) 2021-10-09 14:53:23 +08:00
8fcee19e85 [parser] parser: append replica-only state to previous one strictly (#952) 2021-10-09 14:53:23 +08:00
314dd77cd0 [parser] parser: substitute state field with addingDefinition in partitionInfo (#947) 2021-10-09 14:53:23 +08:00
8f8575ddf5 [parser] parser: support set operator EXCEPT and INTERSECT (#916) 2021-10-09 14:53:23 +08:00
xhe
c307c0dab5 [parser] parser: support ALTER PARTITION clause (#921) 2021-10-09 14:53:23 +08:00
8b78e03aa6 [parser] parser: add a state field for partitionDefinition (#927)
* add schema state for partition definition

Signed-off-by: AilinKid <314806019@qq.com>

* add clone function

Signed-off-by: AilinKid <314806019@qq.com>

* change value copy to slice element self

Signed-off-by: AilinKid <314806019@qq.com>
2021-10-09 14:53:23 +08:00
9973ce7e1f [parser] model: add a Global field to IndexInfo (#917)
Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: kennytm <kennytm@gmail.com>
2021-10-09 14:53:23 +08:00
b3c477a7c0 [parser] model: add OriginDefaultValueBit field to ColumnInfo (#904)
* model: add OriginDefaultValueBit field for ColumnInfo

* add test for column default value
2021-10-09 14:53:23 +08:00
329541ccbd [parser] parser: support alter table add/drop/alter constraint (#899) 2021-10-09 14:53:23 +08:00
1bbc918016 [parser] model: correct the usage of json.Unmarshal in DecodeArgs (#890) 2021-10-09 14:53:23 +08:00
320651b789 [parser] Add more fields in DiffSchema for exchanging partition (#883)
Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: kennytm <kennytm@gmail.com>
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com>
2021-10-09 14:53:23 +08:00
07de176c89 [parser] parser: support check constraints field (#871) 2021-10-09 14:53:23 +08:00
56449d183d [parser] *: Add ddl Action Exchange partition (#852)
* add action of exchange partition

* delete warn

* recreat parser.go
2021-10-09 14:53:23 +08:00
a5b6246135 [parser] model: add IsCommonHandle field on TableInfo (#850) 2021-10-09 14:53:23 +08:00
9ad0d12a08 [parser] parser: add new ddl action AlterIndexVisibility (#840) 2021-10-09 14:53:23 +08:00
96e2a03403 [parser] parser: rename auto rand table option (#828) 2021-10-09 14:53:23 +08:00
97e61aea57 [parser] parser: add auto_random table option support (#823)
* add auto_random table option support

* .

* .
2021-10-09 14:53:23 +08:00
22fc63f328 [parser] parser: add autoid cache option (#765) 2021-10-09 14:53:23 +08:00
511776d406 [parser] parser: remove sequence order option support (#796) 2021-10-09 14:53:23 +08:00
79eff12f73 [parser] add new action ActionDropColumns (#786) 2021-10-09 14:53:23 +08:00
e7a686be57 [parser] Add new ddl action ActionAddColumns (#784) 2021-10-09 14:53:23 +08:00
486bd152dc [parser] model: add invisible option for IndexInfo (#771)
* model: add invisible option for IndexInfo

* fmt

Co-authored-by: kennytm <kennytm@gmail.com>
2021-10-09 14:53:23 +08:00
12683245ad [parser] parser: remove useless IndexToProto,ColumnToProto,ColumnsToProto function (#762) 2021-10-09 14:53:23 +08:00
126233c2b1 [parser] model: do not rewrite collation id as default for tipb. (#752) 2021-10-09 14:53:23 +08:00
9a0826d097 [parser] model: add partition replica available info to support partition table in tiflash (#742)
Signed-off-by: crazycs <crazycs520@gmail.com>
2021-10-09 14:53:23 +08:00
2549fe5ce1 [parser] parser: support expression restored string in default value. (#731) 2021-10-09 14:53:23 +08:00
b3ae107597 [parser] fix json field name in #571 (#702) 2021-10-09 14:53:23 +08:00
b5701d9165 [parser] parser : Add model & errcode & errname for supporting sequence. (#691) 2021-10-09 14:53:23 +08:00
385d05ce3e [parser] parser: support syntax for AUTO_RANDOM (#571) 2021-10-09 14:53:23 +08:00
f7f50a28a7 [parser] DDL : add create sequence support & compatible with mariaDB except OrReplace. (#658)
* add create sequence support

* fix conflict

* be compatible with mariaDB

* add SignedNum and reformat indent

* add sequence test

* .

* address comment

* not support orreplace by now

* add sequence ddl

* add ddl restore test

* add : no cycle/no cache/no order

* .

* fix ident
2021-10-09 14:53:23 +08:00
07f157ca8c [parser] model: add a function GetTypeDesc for ColumnInfo (#659) 2021-10-09 14:53:23 +08:00
194335f65f [parser] model: add hidden to ColumnInfo (#621)
* add hidden

* make codecov happy

* support extended

* clean code

* address comment

* tweak

* address comment
2021-10-09 14:53:23 +08:00
a98bbab0f8 [parser] *: spport primary key (#617) 2021-10-09 14:53:23 +08:00
24a0caa4af [parser] *: suport alter table set flash replica syntax (#564) 2021-10-09 14:53:23 +08:00
ef25c58596 [parser] parser : support admin repair table syntax (#547)
* support admin repair table

* fix comment

* add ddl test

* fix depency
2021-10-09 14:53:23 +08:00
9d0dae0e58 [parser] parser: add nowait keyword, add for update no wait grammar, and related error… (#582) 2021-10-09 14:53:23 +08:00
7c3199735d [parser] add support for RTREE index (#433) 2021-10-09 14:53:23 +08:00