in flink-connector-kudu/src/main/java/org/apache/flink/connectors/kudu/table/KuduCatalog.java [202:218]
public void createTable(KuduTableInfo tableInfo, boolean ignoreIfExists) throws CatalogException, TableAlreadyExistException {
ObjectPath path = getObjectPath(tableInfo.getName());
if (tableExists(path)) {
if (ignoreIfExists) {
return;
} else {
throw new TableAlreadyExistException(getName(), path);
}
}
try {
kuduClient.createTable(tableInfo.getName(), tableInfo.getSchema(), tableInfo.getCreateTableOptions());
} catch (
KuduException e) {
throw new CatalogException("Could not create table " + tableInfo.getName(), e);
}
}