You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/01/11 12:25:15 UTC
(doris) branch master updated: [Fix] (schema change) fix the bug that non light schema change tables can rename column (#29850)
This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 97d4cde67d9 [Fix] (schema change) fix the bug that non light schema change tables can rename column (#29850)
97d4cde67d9 is described below
commit 97d4cde67d947b9b159d14361e5147093e38bb06
Author: Luwei <81...@qq.com>
AuthorDate: Thu Jan 11 20:25:06 2024 +0800
[Fix] (schema change) fix the bug that non light schema change tables can rename column (#29850)
---
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 28c74c749a8..9e371aadc0c 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
@@ -4554,7 +4554,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org