This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 6643e90516a [Fix] (schema change) fix the bug that non light schema 
change tables can rename column (#29871)
6643e90516a is described below

commit 6643e90516a45a6bf3f9c56a3ed169ff88f4197f
Author: Luwei <[email protected]>
AuthorDate: Thu Jan 11 20:01:10 2024 +0800

    [Fix] (schema change) fix the bug that non light schema change tables can 
rename column (#29871)
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 b601ec09fef..e0844491299 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
@@ -4330,7 +4330,7 @@ public class Env {
         Map<Long, MaterializedIndexMeta> indexIdToMeta = 
table.getIndexIdToMeta();
         for (Map.Entry<Long, MaterializedIndexMeta> entry : 
indexIdToMeta.entrySet()) {
             // rename column is not implemented for table without column 
unique id.
-            if (entry.getValue().getMaxColUniqueId() < 0) {
+            if (entry.getValue().getMaxColUniqueId() <= 0) {
                 throw new DdlException("not implemented for table without 
column unique id,"
                         + " which are created with property 
'light_schema_change'.");
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to