KurtYoung commented on a change in pull request #10419:
[FLINK-15026][SQL-CLIENT]Support create/drop/alter database in sql client
URL: https://github.com/apache/flink/pull/10419#discussion_r354096277
##########
File path:
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/local/LocalExecutor.java
##########
@@ -544,6 +544,11 @@ public ProgramTargetDescriptor executeUpdate(String
sessionId, String statement)
String statement) {
applyUpdate(context, context.getTableEnvironment(),
context.getQueryConfig(), statement);
+ //Todo: we should refactor following condition after
TableEnvironment has support submit job directly.
+ if (!statement.trim().matches("(INSERT\\s+INTO.*)")) {
Review comment:
Looks quite hack to me, @danny0405 do you have any idea how to deal with
this?
----------------------------------------------------------------
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