danny0405 commented on code in PR #9592:
URL: https://github.com/apache/hudi/pull/9592#discussion_r1312444984


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieCatalog.java:
##########
@@ -125,6 +125,16 @@ public void open() throws CatalogException {
     } catch (IOException e) {
       throw new CatalogException(String.format("Checking catalog path %s 
exists exception.", catalogPathStr), e);
     }
+
+    if (!databaseExists(getDefaultDatabase())) {
+      LOG.info("Creating database {} automatically because it does not 
exist.", getDefaultDatabase());
+      Path dbPath = new Path(catalogPath, getDefaultDatabase());

Review Comment:
   Can we write a test case for it in `TestHoodieCatalog`.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to