morrySnow commented on code in PR #61918:
URL: https://github.com/apache/doris/pull/61918#discussion_r3031286012
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -1037,8 +1039,13 @@ public boolean unprotectDropTable(Database db, Table
table, boolean isForceDrop,
Env.getCurrentEnv().getAnalysisManager().removeTableStats(table.getId());
Env.getCurrentEnv().getDictionaryManager().dropTableDictionaries(db.getName(),
table.getName());
Env.getCurrentEnv().getQueryStats().clear(Env.getCurrentInternalCatalog().getId(),
db.getId(), table.getId());
+ String tableNameStr = table.getName();
+ if (GlobalVariable.isStoredTableNamesLowerCase()) {
+ tableNameStr = tableNameStr.toLowerCase();
+ }
Review Comment:
Fixed — removed the redundant lowercasing block. The `TableNameInfo`
constructor already handles `toLowerCase()`, so the caller now simply passes
`table.getName()` directly to `TableNameInfoUtils.fromDb(db, table.getName())`.
--
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]