Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/600#discussion_r32583451
  
    --- Diff: 
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/store/XMLCatalogSchemaManager.java
 ---
    @@ -344,6 +345,16 @@ public void upgradeBaseSchema(Connection conn, int 
currentVersion) {
         CatalogUtil.closeQuietly(stmt);
       }
     
    +  public boolean catalogAlreadyExists(Connection conn) throws 
CatalogException {
    +    boolean result = false;
    +    try {
    +      result = checkExistence(conn, DatabaseObjectType.TABLE, 
CatalogConstants.TB_META);
    --- End diff --
    
    I think that every database object should be checked.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to