KurtYoung commented on a change in pull request #10454: [FLINK-13195][sql-client] Add create(drop) table support for SqlClient URL: https://github.com/apache/flink/pull/10454#discussion_r355096763
########## File path: flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java ########## @@ -534,6 +540,27 @@ private boolean callInsertInto(SqlCommandCall cmdCall) { return true; } + private void callCreateTable(SqlCommandCall cmdCall) { + try { + executor.createTable(sessionId, cmdCall.operands[0]); + printInfo(CliStrings.MESSAGE_TABLE_CREATED); + terminal.flush(); + } catch (SqlExecutionException e) { + printExecutionException(e); + return; + } + } + + private void callDropTable(SqlCommandCall cmdCall) { + try { + executor.dropTable(sessionId, cmdCall.operands[0]); + printInfo(CliStrings.MESSAGE_TABLE_REMOVED); + terminal.flush(); Review comment: ditto ---------------------------------------------------------------- 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 With regards, Apache Git Services