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/21 05:48:47 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new issue, #21672: [DistSQL] Change `SINGLE TABLE RULE` related syntax

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

   Hi community,
   
   This issue is for #21659.
   
   ### Background
   By default, when a user creates a single table, it is randomly routed to a storage unit, but we can route the user-created single table to the same unit through `CREATE DEFAULT SINGLE TABLE RULE`.
   
   But before that, if the CREATE statement is not executed, the result of `SHOW SINGLE TABLE RULES` is an empty string, which does not match the actual situation of "RANDOM".
   
   ### Aim
   Change `SINGLE TABLE RULE` related syntax , e.g.
   - `CREATE DEFAULT SINGLE TABLE RULE RESOURCE = xx` -> `SET DEFAULT SINGLE TABLE STORAGE UNIT = xx`
   - `ALTER DEFAULT SINGLE TABLE RULE RESOURCE` ->  REMOVE IT
   - `DROP DEFAULT SINGLE TABLE RULE` -> `SET DEFAULT SINGLE TABLE STORAGE UNIT = RANDOM` (RANDOM is keyword)
   - `SHOW SINGLE TABLE RULES` -> `SHOW DEFAULT SINGLE TABLE STORAGE UNIT`


-- 
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] jiangML commented on issue #21672: [DistSQL] Change `SINGLE TABLE RULE` related syntax

Posted by GitBox <gi...@apache.org>.
jiangML commented on issue #21672:
URL: https://github.com/apache/shardingsphere/issues/21672#issuecomment-1286491252

   I'll try to do it


-- 
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 commented on issue #21672: [DistSQL] Change `SINGLE TABLE RULE` related syntax

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #21672:
URL: https://github.com/apache/shardingsphere/issues/21672#issuecomment-1299447108

   @jiangML Completed, thank you!


-- 
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 #21672: [DistSQL] Change `SINGLE TABLE RULE` related syntax

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #21672: [DistSQL] Change `SINGLE TABLE RULE` related syntax 
URL: https://github.com/apache/shardingsphere/issues/21672


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