in flink-connector-kudu/src/main/java/org/apache/flink/connector/kudu/connector/writer/KuduWriter.java [140:150]
private KuduTable obtainTable() throws IOException {
String tableName = tableInfo.getName();
if (client.tableExists(tableName)) {
return client.openTable(tableName);
}
if (tableInfo.getCreateTableIfNotExists()) {
return client.createTable(
tableName, tableInfo.getSchema(), tableInfo.getCreateTableOptions());
}
throw new RuntimeException("Table " + tableName + " does not exist.");
}