-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] support specify the number of hash partition tables #587
Comments
zhyass
changed the title
[feature] support specify the number of partition tables
[feature] support specify the number of hash partition tables
Mar 6, 2020
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Mar 6, 2020
[summary] syntax: CREATE TABLE ... ... PARTITION BY HASH(shard-key) PARTITIONS num; The `num` is a positive integer, limited to [8,16,32,64]. [test case] src/proxy/ddl_test.go src/router/compute_test.go src/router/frm_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go [patch codecov] src/proxy/ddl.go 95.2% src/router/compute.go 100% src/router/frm.go 86.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 85.9%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Mar 6, 2020
[summary] syntax: CREATE TABLE ... ... PARTITION BY HASH(shard-key) PARTITIONS num; The `num` is a positive integer, limited to [8,16,32,64]. [test case] src/proxy/ddl_test.go src/router/compute_test.go src/router/frm_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go [patch codecov] src/proxy/ddl.go 95.2% src/router/compute.go 100% src/router/frm.go 86.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 85.9%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Mar 6, 2020
[summary] syntax: CREATE TABLE ... ... PARTITION BY HASH(shard-key) PARTITIONS num; The `num` is a positive integer, limited to [8,16,32,64]. [test case] src/proxy/ddl_test.go src/router/compute_test.go src/router/frm_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go [patch codecov] src/proxy/ddl.go 95.2% src/router/compute.go 100% src/router/frm.go 86.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 85.9%
zhyass
added a commit
to zhyass/radon
that referenced
this issue
Mar 19, 2020
[summary] syntax: CREATE TABLE ... ... PARTITION BY HASH(shard-key) PARTITIONS num; The `num` is a positive integer, limited to [8,16,32,64]. [test case] src/proxy/ddl_test.go src/router/compute_test.go src/router/frm_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go [patch codecov] src/proxy/ddl.go 95.2% src/router/compute.go 100% src/router/frm.go 86.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 85.9%
BohuTANG
pushed a commit
that referenced
this issue
Mar 31, 2020
[summary] syntax: CREATE TABLE ... ... PARTITION BY HASH(shard-key) PARTITIONS num; The `num` is a positive integer, limited to [8,16,32,64]. [test case] src/proxy/ddl_test.go src/router/compute_test.go src/router/frm_test.go src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go [patch codecov] src/proxy/ddl.go 95.2% src/router/compute.go 100% src/router/frm.go 86.4% src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 85.9%
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
MySQL
, we can specify the number of partition tables. such as:By
PARTITIONS 4
can create a hash table with 4 partitions.Radon
can refer to the practice ofmysql
, and specify the number of hash partition tables throughpartitions
. The number of partitions is limited to [8,16,32,64].The text was updated successfully, but these errors were encountered: