strongduanmu commented on issue #10271:
URL: 
https://github.com/apache/shardingsphere/issues/10271#issuecomment-834997974


   @tristaZero I tested PG `show statement` parsing, and found that antlr can 
match invalid content by default, which caused the `show statement` in distsql 
to fail to be executed. By specifying a explicit `EOF` lexical symbol, we can 
force to match all inputs, and invalid content will cause exceptions. 
   
   Before adding `EOF`:
   
![image](https://user-images.githubusercontent.com/10829171/117523407-fefaf600-afea-11eb-8307-06cd83223cf0.png)
   
   After adding `EOF`:
   
![image](https://user-images.githubusercontent.com/10829171/117523479-1c2fc480-afeb-11eb-8a7d-f9d69243ffc7.png)
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to