danny0405 commented on a change in pull request #10469: 
[FLINK-15107][SQL-CLIENT]Fix bug that sql cli can not execute statement with 
lower 'inert into'
URL: https://github.com/apache/flink/pull/10469#discussion_r355096643
 
 

 ##########
 File path: 
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/local/LocalExecutor.java
 ##########
 @@ -108,6 +109,11 @@
 
        private final ResultStore resultStore;
 
+       // insert into sql match pattern
+       private static final int DEFAULT_PATTERN_FLAGS = 
Pattern.CASE_INSENSITIVE | Pattern.DOTALL;
+       public static final Pattern INSERT_INTO_SQL_PATTERN = 
Pattern.compile("(INSERT\\s+INTO.*)",
+                       DEFAULT_PATTERN_FLAGS);
+
 
 Review comment:
   We can inline this `DEFAULT_PATTERN_FLAGS ` directly to avoid introduce a 
new variable.

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


With regards,
Apache Git Services

Reply via email to