Copilot commented on code in PR #52989:
URL: https://github.com/apache/doris/pull/52989#discussion_r2199511391
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetadataOps.java:
##########
@@ -319,8 +321,14 @@ public void dropTableImpl(ExternalTable dorisTable,
boolean ifExists) throws Ddl
public void afterDropTable(String dbName, String tblName) {
Optional<ExternalDatabase<?>> db = catalog.getDbForReplay(dbName);
if (db.isPresent()) {
- db.get().setUnInitialized(true);
+ Optional table = db.get().getTableForReplay(tblName);
+ if (table.isPresent()) {
+
Env.getCurrentEnv().getRefreshManager().refreshTableInternal(db.get(),
(ExternalTable) table.get(), 0);
+ }
+ db.get().setUnInitialized();
}
+ LOG.info("after drop table {}.{}.{}, is db exists: {}",
Review Comment:
[nitpick] The log message reads "is db exists" which is grammatically
awkward. Consider rephrasing to something like "db exists: {}" or "does db
exist: {}".
```suggestion
LOG.info("after drop table {}.{}.{}, db exists: {}",
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]