godfrey he created FLINK-18059: ---------------------------------- Summary: Can not execute create/drop catalog statement in sql client Key: FLINK-18059 URL: https://issues.apache.org/jira/browse/FLINK-18059 Project: Flink Issue Type: Bug Components: Table SQL / Client Affects Versions: 1.10.1 Reporter: godfrey he
when executing create catalog statement (e.g. {{create CATALOG c1 with('type'='generic_in_memory'}}) in sql client, the following exception will occur: Exception in thread "main" org.apache.flink.table.client.SqlClientException: Unsupported command: CREATE CATALOG at org.apache.flink.table.client.cli.CliClient.callCommand(CliClient.java:355) at java.util.Optional.ifPresent(Optional.java:159) at org.apache.flink.table.client.cli.CliClient.open(CliClient.java:213) at org.apache.flink.table.client.SqlClient.openCli(SqlClient.java:142) at org.apache.flink.table.client.SqlClient.start(SqlClient.java:114) at org.apache.flink.table.client.SqlClient.main(SqlClient.java:201) Similar case for {{drop catalog}}. The reason is CliClient class does not handle CREATE_CATALOG command and DROP_CATALOG command. -- This message was sent by Atlassian Jira (v8.3.4#803005)