qidaye commented on a change in pull request #6569: URL: https://github.com/apache/incubator-doris/pull/6569#discussion_r730662122
########## File path: fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java ########## @@ -3951,6 +3952,13 @@ private void createHiveTable(Database db, CreateTableStmt stmt) throws DdlExcept long tableId = getNextId(); HiveTable hiveTable = new HiveTable(tableId, tableName, columns, stmt.getProperties()); hiveTable.setComment(stmt.getComment()); + // check hive table if exists in hive database + HiveMetaStoreClient hiveMetaStoreClient = + HiveMetaStoreClientHelper.getClient(hiveTable.getHiveProperties().get(HiveTable.HIVE_METASTORE_URIS)); Review comment: All hive properties including `HIVE_METASTORE_URIS` is checked in `HiveTable.validate` function, when create a new `HiveTable` object. It guarantees `HIVE_METASTORE_URIS` is not null or empty string. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org