[Fix] (schema change) fix the bug that non light schema change tables can rename column (#29850)

This commit is contained in:
Luwei
2024-01-11 20:25:06 +08:00
committed by yiguolei
parent 42c21f7eda
commit 53639a01fe

View File

@ -4553,7 +4553,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'.");
}