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/10/10 06:32:38 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new issue, #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`

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

   Hi community,
   
   Currently, users can configure sharding table rules in two different ways: `tables` and `autoTables`
   ([ref](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-jdbc/yaml-config/rules/sharding/))
   Likewise, both configurations can be created via DistSQL: the difference is that one uses `DATANODES` to define storage nodes, while the other uses `RESOURCES`. ([ref](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/sharding/))
   
   Note that when using the `autoTables` configuration, it should be used with the `Auto Sharding Algorithm`, but not others. ([ref](https://shardingsphere.apache.org/document/current/en/user-manual/common-config/builtin-algorithm/sharding/))
   If a non auto algorithm is provided to an auto table, the rule may not work.
   
   Therefore, we should check when `CREATE SHARDING TABLE RULE` to help users find configuration errors early.
   
   The processing logic is in `CreateShardingTableRuleStatementUpdater`, of course, `AlterShardingTableRuleStatementUpdater` should also do similar checks.


-- 
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] github-actions[bot] commented on issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20378:
URL: https://github.com/apache/shardingsphere/issues/20378#issuecomment-1272348789

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


-- 
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


[GitHub] [shardingsphere] sunkai-cai commented on issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`

Posted by GitBox <gi...@apache.org>.
sunkai-cai commented on issue #20378:
URL: https://github.com/apache/shardingsphere/issues/20378#issuecomment-1222012961

   please assigness to me.


-- 
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


[GitHub] [shardingsphere] github-actions[bot] closed issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`
URL: https://github.com/apache/shardingsphere/issues/20378


-- 
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


[GitHub] [shardingsphere] RaigorJiang closed issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #20378: Enhanced algorithm checking for `CREATE SHARDING TABLE RULE`
URL: https://github.com/apache/shardingsphere/issues/20378


-- 
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