Support partition by (#4667)
The DDL statement supports the partition by clause. The partition types include: RANGE Partitioning, LIST Partitioning, COLUMNS Partitioning, RANGE COLUMNS partitioning, LIST COLUMNS partitioning, HASH Partitioning, KEY Partitioning, The construction of the partition sentence and the semantic check coding have been completed, but the partition information of DDL is not synchronized to the metadata table. Subsequently, the metadata table related to the partition will be added and the partition information will be displayed when show create table is supported, Issue#4749 Approved by: @daviszhen, @zhangxu19830126, @fengttt, @aunjgr, @iamlinjunhong, @ouyuanning, @aressu1985, @nnsgmsone
Showing
- pkg/common/moerr/error.go 36 additions, 2 deletionspkg/common/moerr/error.go
- pkg/container/types/types.go 55 additions, 0 deletionspkg/container/types/types.go
- pkg/pb/plan/plan.pb.go 1845 additions, 438 deletionspkg/pb/plan/plan.pb.go
- pkg/sql/parsers/dialect/mysql/mysql_sql.go 2540 additions, 2515 deletionspkg/sql/parsers/dialect/mysql/mysql_sql.go
- pkg/sql/parsers/dialect/mysql/mysql_sql.y 29 additions, 16 deletionspkg/sql/parsers/dialect/mysql/mysql_sql.y
- pkg/sql/parsers/dialect/mysql/mysql_sql_test.go 135 additions, 14 deletionspkg/sql/parsers/dialect/mysql/mysql_sql_test.go
- pkg/sql/parsers/tree/create.go 8 additions, 2 deletionspkg/sql/parsers/tree/create.go
- pkg/sql/parsers/tree/expr.go 12 additions, 8 deletionspkg/sql/parsers/tree/expr.go
- pkg/sql/plan/base_binder.go 7 additions, 2 deletionspkg/sql/plan/base_binder.go
- pkg/sql/plan/build_ddl.go 38 additions, 1 deletionpkg/sql/plan/build_ddl.go
- pkg/sql/plan/build_partition_test.go 897 additions, 0 deletionspkg/sql/plan/build_partition_test.go
- pkg/sql/plan/build_test.go 3 additions, 2 deletionspkg/sql/plan/build_test.go
- pkg/sql/plan/partition.go 567 additions, 0 deletionspkg/sql/plan/partition.go
- pkg/sql/plan/partition_binder.go 50 additions, 0 deletionspkg/sql/plan/partition_binder.go
- pkg/sql/plan/types.go 6 additions, 0 deletionspkg/sql/plan/types.go
- proto/plan.proto 39 additions, 0 deletionsproto/plan.proto
- test/cases/ddl/table_partition.test 103 additions, 0 deletionstest/cases/ddl/table_partition.test
- test/result/ddl/table_partition.result 122 additions, 0 deletionstest/result/ddl/table_partition.result
Please register or sign in to comment