You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/07/08 02:08:38 UTC

[GitHub] [shardingsphere] tuichenchuxin opened a new issue, #18948: Support get detail error info for parse

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

   ## Feature Request
   
   ### Is your feature request related to a problem?
    No
   ### Describe the feature you would like.
    parse error should have detail info.
   like this sql 
   ```
   CREATE TABLE public.files (id BIGINT NOT NULL, created_at TIMESTAMP WITHOUT TIME ZONE, updated_at TIMESTAMP WITHOUT TIME ZONE, created_by BIGINT, updated_by BIGINT, name VARCHAR(255), path VARCHAR(255), CONSTRAINT files_pkey PRIMARY KEY (id))
   ```
   We can only get this error info
   ```
   You have an error in your SQL syntax
   ```
   Actually we can get detail info like this 
   ```
   line 1:184 no viable alternative at input 'path'
   ```
   ### How to do
   I found if I remove this error listener line. Then, I can get error info . So it's may be a way to get detail info.
   ```java
       @SneakyThrows(ReflectiveOperationException.class)
       private static SQLParser createSQLParser(final TokenStream tokenStream, final Class<? extends SQLParser> parserClass) {
           SQLParser result = parserClass.getConstructor(TokenStream.class).newInstance(tokenStream);
           ((Parser) result).setErrorHandler(new BailErrorStrategy());
           // ((Parser) result).removeErrorListener(ConsoleErrorListener.INSTANCE);
           return result;
       }
   ```


-- 
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] hailin0 commented on issue #18948: Support get detail error info for parse

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1519093489

   this problem still need to be fixed?


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


[GitHub] [shardingsphere] github-actions[bot] closed issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #18948: Support get detail error info for parse
URL: https://github.com/apache/shardingsphere/issues/18948


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


[GitHub] [shardingsphere] strongduanmu commented on issue #18948: Support get detail error info for parse

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1519222849

   You can do some test, I think it has been support by other contributor.


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


[GitHub] [shardingsphere] chakkk309 commented on issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
chakkk309 commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1178486423

   Hi, can I try this?


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


[GitHub] [shardingsphere] tuichenchuxin commented on issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1205965956

   @chakkk309 hi, is there any progress for this issue?


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


[GitHub] [shardingsphere] chakkk309 commented on issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
chakkk309 commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1206043688

   > @chakkk309 hi, is there any progress for this issue?
   
   Hi, this issue is still in progress, if there is any progress I will keep you updated.


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


[GitHub] [shardingsphere] github-actions[bot] commented on issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1272349452

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


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


[GitHub] [shardingsphere] tuichenchuxin commented on issue #18948: Support get detail error info for parse

Posted by GitBox <gi...@apache.org>.
tuichenchuxin commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1178497492

   sure


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


[GitHub] [shardingsphere] hailin0 commented on issue #18948: Support get detail error info for parse

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on issue #18948:
URL: https://github.com/apache/shardingsphere/issues/18948#issuecomment-1519279965

   > You can do some test, I think it has been support by other contributor.
   
   I have tested and found no such issue


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