Skip to content

Commit

Permalink
[Fix] (schema change) fix the bug that non light schema change tables…
Browse files Browse the repository at this point in the history
… can rename column (apache#29871)
  • Loading branch information
luwei16 authored Jan 11, 2024
1 parent f3f1c4b commit 6643e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -4330,7 +4330,7 @@ private void renameColumn(Database db, OlapTable table, String colName,
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'.");
}
Expand Down

0 comments on commit 6643e90

Please sign in to comment.