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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to