rdblue commented on a change in pull request #1435:
URL: https://github.com/apache/iceberg/pull/1435#discussion_r485981121
##########
File path: flink/src/main/java/org/apache/iceberg/flink/FlinkCatalog.java
##########
@@ -111,6 +111,12 @@ public FlinkCatalog(
@Override
public void open() throws CatalogException {
+ // Create the default database if it does not exist.
+ try {
+ createDatabase(getDefaultDatabase(), ImmutableMap.of(), true);
+ } catch (DatabaseAlreadyExistException e) {
+ throw new CatalogException(e);
Review comment:
Does this do what you want? It seems like if the intent is `IF NOT
EXISTS` then you should ignore the `DatabaseAlreadyExistException`.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]