openinx commented on a change in pull request #1435:
URL: https://github.com/apache/iceberg/pull/1435#discussion_r486142441



##########
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:
       Yeah, it delegates the `DatabaseAlreadyExistsException`, in theory it 
should not throw this exception.  I noticed this before, we could just ignore 
it here.




----------------------------------------------------------------
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]

Reply via email to