You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "hehuiyuan (Jira)" <ji...@apache.org> on 2021/08/16 10:30:00 UTC

[jira] [Updated] (FLINK-23810) Print sql when parse failed , which is convenient to find error sql from multiple executed sql

     [ https://issues.apache.org/jira/browse/FLINK-23810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

hehuiyuan updated FLINK-23810:
------------------------------
    Summary: Print  sql when parse failed  , which is convenient to find error sql from  multiple executed sql   (was: Print  sql when parse failed  , which is convenient to find error sql for multiple sql )

> Print  sql when parse failed  , which is convenient to find error sql from  multiple executed sql 
> --------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-23810
>                 URL: https://issues.apache.org/jira/browse/FLINK-23810
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>            Reporter: hehuiyuan
>            Priority: Major
>
> Print sql when parse failed , which is convenient to find error sql.
>  
> {code:java}
> public SqlNode parse(String sql) {
>     try {
>         SqlParser parser = SqlParser.create(sql, config);
>         return parser.parseStmt();
>     } catch (SqlParseException e) {
>         throw new SqlParserException("SQL parse failed. " + e.getMessage(), e);
>     }
> }
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)