You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/04 06:33:04 UTC

[GitHub] [shardingsphere] jiangML opened a new issue, #21951: "CREATE SHARDING TABLE REFERENCE RULE" is not verified

jiangML opened a new issue, #21951:
URL: https://github.com/apache/shardingsphere/issues/21951

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   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?
   mater
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   proy
   ### Expected behavior
   `t_user1, t_user2` cannot be bound when the shards are inconsistent
   ### Actual behavior
   ```sql
   CREATE SHARDING TABLE RULE t_user1(
       STORAGE_UNITS(ds_0, ds_1),
       SHARDING_COLUMN=order_id,
       TYPE(NAME="hash_mod",PROPERTIES("sharding-count"="4")),
       KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME="snowflake"))
   );
   
   CREATE SHARDING TABLE RULE t_user2(
       STORAGE_UNITS(ds_0, ds_1),
       SHARDING_COLUMN=order_id,
       TYPE(NAME="hash_mod",PROPERTIES("sharding-count"="2")),
       KEY_GENERATE_STRATEGY(COLUMN=order_id,TYPE(NAME="snowflake"))
   );
   
   CREATE SHARDING TABLE REFERENCE RULE (t_user1,t_user2);
   
   SHOW SHARDING TABLE REFERENCE RULES;
   
   ```
   Executing `CREATE SHARDING TABLE REFERENCE RULE (t_user1,t_user2);` will fail, but after executing `SHOW SHARDING TABLE REFERENCE RULES;` will see that `t_user1,t_user2` are bound
   
   ### Reason analyze (If you can)
   
   ### 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).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] RaigorJiang closed issue #21951: "CREATE SHARDING TABLE REFERENCE RULE" does not do check sharding table rules

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #21951: "CREATE SHARDING TABLE REFERENCE RULE" does not do check sharding table rules
URL: https://github.com/apache/shardingsphere/issues/21951


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org