Yulei-Yang commented on code in PR #40680:
URL: https://github.com/apache/doris/pull/40680#discussion_r1983225192
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Database.java:
##########
@@ -381,6 +382,19 @@ public void checkQuota() throws DdlException {
checkReplicaQuota();
}
+ public boolean isTableExist(String tableName, boolean isTemporary) {
+ if (Env.isTableNamesCaseInsensitive()) {
+ tableName = tableName.toLowerCase();
+ }
+
+ if (isTemporary) {
+ Set<String> tableSet =
ConnectContext.get().getDbToTempTableNamesMap().get(fullQualifiedName);
+ return tableSet != null && tableSet.contains(tableName);
+ } else {
+ return nameToTable.containsKey(tableName);
+ }
+ }
+
public boolean isTableExist(String tableName) {
Review Comment:
done
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Database.java:
##########
@@ -381,6 +382,19 @@ public void checkQuota() throws DdlException {
checkReplicaQuota();
}
+ public boolean isTableExist(String tableName, boolean isTemporary) {
+ if (Env.isTableNamesCaseInsensitive()) {
+ tableName = tableName.toLowerCase();
Review Comment:
fixed
--
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]