diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java index ea02a20a07b538..6b003f68b5ca49 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java @@ -237,8 +237,8 @@ public void replayInitDb(InitDatabaseLog log, ExternalCatalog catalog) { LOG.info("Synchronized table (create): [Name: {}, ID: {}, Remote Name: {}]", table.getName(), table.getId(), log.getRemoteTableNames().get(i)); } - // Check whether the remoteName and db Tbl db in idToTbl is empty - for (T table : idToTbl.values()) { + // Check whether the remoteName and db Tbl db in tmpIdToTbl is empty + for (T table : tmpIdToTbl.values()) { if (Strings.isNullOrEmpty(table.getRemoteName()) || table.getDb() == null) { LOG.info("Table [{}] remoteName or database is empty, mark as uninitialized", @@ -664,8 +664,8 @@ public void gsonPostProcess() throws IOException { ((ExternalTable) obj).getName()); } } - // Check whether the remoteName and db Tbl db in idToTbl is empty - for (T table : idToTbl.values()) { + // Check whether the remoteName and db Tbl db in tmpIdToTbl is empty + for (T table : tmpIdToTbl.values()) { if (Strings.isNullOrEmpty(table.getRemoteName()) || table.getDb() == null) { initialized = false;