You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "RaigorJiang (via GitHub)" <gi...@apache.org> on 2023/06/03 03:31:47 UTC

[GitHub] [shardingsphere] RaigorJiang opened a new issue, #26024: DistSQL related to SQL_PARSER RULE needs to be updated

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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tristaZero closed issue #26024: DistSQL related to SQL_PARSER RULE needs to be updated

Posted by "tristaZero (via GitHub)" <gi...@apache.org>.
tristaZero closed issue #26024: DistSQL related to SQL_PARSER RULE needs to be updated
URL: https://github.com/apache/shardingsphere/issues/26024


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org