fsk119 commented on a change in pull request #15926: URL: https://github.com/apache/flink/pull/15926#discussion_r634943342
########## File path: flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliStatementSplitter.java ########## @@ -49,7 +50,10 @@ public static boolean isStatementComplete(String statement) { for (String line : content.split("\n")) { if (isEndOfStatement(line)) { buffer.add(line); - statements.add(String.join("\n", buffer)); + statements.add( + buffer.stream() Review comment: Please also take a look at line 63. -- 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: us...@infra.apache.org