Skip to content
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

DistSQL create table sharding rule failed #32269

Open
dobet opened this issue Jul 25, 2024 · 0 comments
Open

DistSQL create table sharding rule failed #32269

dobet opened this issue Jul 25, 2024 · 0 comments

Comments

@dobet
Copy link

dobet commented Jul 25, 2024

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

5.5.0

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

CREATE SHARDING TABLE RULE mnametest (
   STORAGE_UNITS(db1_000, db1_001),
    SHARDING_COLUMN=name,TYPE(NAME=name),PROPERTIES("sharding-count"="2"));

create success.

Actual behavior

ERROR 1064 (42000): You have an error in your SQL syntax: no viable alternative at input 'CREATESHARDING' near '[@1,7:14='SHARDING',<864>,1:7]' at line 1

Reason analyze (If you can)

maybe name is the keyword?

image

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants