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

   Current DistSQL: drop scaling j01001;
   Final DistSQL: clean scaling j01001;
   
   There're plenty of classes and files need to be modified, include grammar 
files and related classes, and also DistSQL handler, unit test etc.
   We could find them out by searching:
   1. Class name search by text: DropMigration . Rename classes, replace `Drop` 
to `Clean`
   2. Text search by regex: drop[ _-]*scaling . Replace text `drop` to `clean` 
, classes generated by ANTLR4 could be ignored
   
   Firstly, we could change ANTLR4 grammer file, replace `drop` to `clean`:
   - migration/RALStatement.g4
   - MigrationDistSQLStatement.g4
   
   Then run `mvn clean install -Dmaven.javadoc.skip=true -Djacoco.skip=true 
-Dspotless.apply.skip=true` in 
`shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-distsql`
 module.
   
   And then continue to rename or replace by keyword searching.
   
   After go through these changed files, we could basically know how to add or 
modify scaling DistSQL.
   


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