This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 69961ac19c fix bug for lower case when rename table name (#11403)
69961ac19c is described below
commit 69961ac19c0aa5400b06f9464b9a0739e770f997
Author: pengxiangyu <[email protected]>
AuthorDate: Mon Aug 1 22:30:41 2022 +0800
fix bug for lower case when rename table name (#11403)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
index 835cfbce2c..2e4e1b84e5 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
@@ -3647,6 +3647,9 @@ public class Env {
String oldTableName = table.getName();
String newTableName = tableRenameClause.getNewTableName();
+ if (Env.isStoredTableNamesLowerCase() &&
!Strings.isNullOrEmpty(newTableName)) {
+ newTableName = newTableName.toLowerCase();
+ }
if (oldTableName.equals(newTableName)) {
throw new DdlException("Same table name");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]