You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/24 15:15:03 UTC

[GitHub] [flink] dawidwys commented on a change in pull request #11172: [FLINK-16067][table] Forward Calcite exception when parsing a sql query

dawidwys commented on a change in pull request #11172: [FLINK-16067][table] Forward Calcite exception when parsing a sql query
URL: https://github.com/apache/flink/pull/11172#discussion_r383323874
 
 

 ##########
 File path: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/calcite/CalciteParser.java
 ##########
 @@ -47,7 +47,7 @@ public SqlNode parse(String sql) {
 			SqlParser parser = SqlParser.create(sql, config);
 			return parser.parseStmt();
 		} catch (SqlParseException e) {
-			throw new SqlParserException("SQL parse failed. " + e.getMessage());
+			throw new SqlParserException("SQL parse failed." + e.getMessage(), e);
 
 Review comment:
   Good catch @libenchao . I fixed it while merging.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services