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

   ### References
   - DistSQL: 
https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/alter-sql-parser-rule/
   - YAML: 
https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-jdbc/yaml-config/rules/sql-parser/
   
   ### Now
   ```sql
   ALTER SQL_PARSER RULE 
     SQL_COMMENT_PARSE_ENABLE=false, 
     PARSE_TREE_CACHE(INITIAL_CAPACITY=10, MAXIMUM_SIZE=11, 
CONCURRENCY_LEVEL=1), 
     SQL_STATEMENT_CACHE(INITIAL_CAPACITY=11, MAXIMUM_SIZE=11, 
CONCURRENCY_LEVEL=100);
   ```
   
   TODO:
   1. `SQL_COMMENT_PARSE_ENABLE ` should be changed to 
`SQL_COMMENT_PARSE_ENABLED`;
   2.  The rule definition should be wrapped in parentheses;
   3. `CONCURRENCY_LEVEL` should be removed.
   
   ### Expected
   ```sql
   ALTER SQL_PARSER RULE (
     SQL_COMMENT_PARSE_ENABLED=false, 
     SQL_STATEMENT_CACHE(INITIAL_CAPACITY=11, MAXIMUM_SIZE=11),
     PARSE_TREE_CACHE(INITIAL_CAPACITY=10, MAXIMUM_SIZE=11)
   );
   ```
   
   Similarly, [SHOW SQL_PARSER 
RULE](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/show-sql-parser-rule/)
 also needs to be updated at the same time
   
   
   


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