From 53639a01fed35b0a57420cc6e8eb787851e09926 Mon Sep 17 00:00:00 2001 From: Luwei <814383175@qq.com> Date: Thu, 11 Jan 2024 20:25:06 +0800 Subject: [PATCH] [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 2f33e12da4..d2ec28894a 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 @@ -4553,7 +4553,7 @@ public class Env { Map indexIdToMeta = table.getIndexIdToMeta(); for (Map.Entry 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'."); }