[Fix] (schema change) fix the bug that non light schema change tables can rename column (#29850)
This commit is contained in:
@ -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'.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user