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

   In the `CREATE ENCRYPT RULE` syntax, there is such a definition as follows:
   
   ```sql
   encryptColumnDefinition
        : LP columnDefinition (COMMA plainColumnDefinition)? COMMA 
cipherColumnDefinition (COMMA assistedQueryColumnDefinition)? (COMMA 
likeQueryColumnDefinition)? COMMA algorithmDefinition (COMMA 
algorithmDefinition)? (COMMA algorithmDefinition)? RP
        ;
   ```
   Ref: 
https://github.com/apache/shardingsphere/blob/master/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/RDLStatement.g4
   
   It can be found that there are three `algorithmDefinitions` in this 
definition, but they actually represent different meanings.
   According to the semantics, these three `algorithmDefinition` represent 
`encrypt algorithm`, `assisted query algorithm` and `like query algorithm` 
respectively.
   
   We should add variables to distinguish these names and improve readability.


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