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

   Hi community, 
   
   We recently refactor `readwrite-splitting` feature `API`, you can refer to 
#18587, #18629.
   
   So, we need to modify `RDL` about `READWRITE_SPLITTING RULE`. 
   
   Now CREATE or ALTER Dynamic `READWRITE_SPLITTING RULE` DistSQL are : 
   
   // Dynamic
   ```
   CREATE READWRITE_SPLITTING RULE ms_group_1 (
   AUTO_AWARE_RESOURCE=group_0
   );
   ```
   
   ```
   ALTER READWRITE_SPLITTING RULE ms_group_1 (
   AUTO_AWARE_RESOURCE=group_1
   );
   ```
   
   Hope to adjust to : 
   
   // Dynamic
   ```
   CREATE READWRITE_SPLITTING RULE ms_group_1 (
   AUTO_AWARE_RESOURCE=group_0,
   WRITE_DATA_SOURCE_QUERY_ENABLED='true'
   );
   ```
   
   ```
   ALTER READWRITE_SPLITTING RULE ms_group_1 (
   AUTO_AWARE_RESOURCE=group_1,
   WRITE_DATA_SOURCE_QUERY_ENABLED='false'
   );
   ```
   
   - [ ] Adjust `shardingsphere-readwrite-splitting-distsql-handler` 
RDLStatement.g4 file.
   - [ ] Modify `CreateReadwriteSplittingRuleStatementUpdater.class` and 
`AlterReadwriteSplittingRuleStatementUpdater.class`.
   - [ ] Modify document
   
   1. 
https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/readwrite-splitting/
   
   - [ ] Fix shardingsphere-integration-test module.
   
   
    


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