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: [email protected]

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

Reply via email to