You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/12/20 04:40:36 UTC
[GitHub] [inlong] wangpeix commented on a diff in pull request #6974: [INLONG-6968][Sort] Fix the SqlParseException: Encountered "\'"
wangpeix commented on code in PR #6974:
URL: https://github.com/apache/inlong/pull/6974#discussion_r1052900381
##########
inlong-sort/sort-core/src/main/java/org/apache/inlong/sort/parser/impl/NativeFlinkSqlParser.java:
##########
@@ -82,7 +82,7 @@ public ParseResult parse() {
Preconditions.checkNotNull(tableEnv, "tableEnv is null");
List<String> createTableSqls = new ArrayList<>();
List<String> insertSqls = new ArrayList<>();
- String[] statementSet = statements.split(";");
+ String[] statementSet = statements.split(";(\\r?\\n|\\r)");
Review Comment:
In most case, `;(\\r?\\n|\\r)` is ok. But If there is a sql statement like this `concat(';\n','b')`, may be problem.
--
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: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org