lanchengx opened a new issue #13997:
URL: https://github.com/apache/shardingsphere/issues/13997


   For details, please refer to 
https://github.com/apache/shardingsphere/issues/13994
   
   The ANTLR definition syntax is as follows:
   
   ```sql
   ALTER SHARDING KEY GENERATOR keyGeneratorDefination (COMMA 
keyGeneratorDefination)*
   
   keyGeneratorDefination: keyGeneratorName LP algorithmDefinition RP;
   keyGeneratorName:IDENTIFIER;
   algorithmDefinition: TYPE LP NAME EQ algorithmName (COMMA PROPERTIES LP 
algorithmProperties? RP)? RP;
   ```
   
   Examples are as follows:
   
   ```sql
   ALTER SHARDING KEY GENERATOR 
uuid_key_generator(TYPE(NAME=uuid,PROPERTIES("worker-id"=123)));
   ```
   
   This syntax overlaps with `CREATE SHARDING KEY GENERATOR` statement, need to 
complete the `CREATE SHARDING KEY GENERATOR` statement first.
   


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