qidaye commented on code in PR #48988:
URL: https://github.com/apache/doris/pull/48988#discussion_r1992619204


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -1766,6 +1766,8 @@ public PartitionPersistInfo addPartition(Database db, 
String tableName, AddParti
             if (!isCreateTable) {
                 beforeCreatePartitions(db.getId(), olapTable.getId(), 
partitionIds, indexIds, isCreateTable);
             }
+            // init column unique id for indexes
+            olapTable.initIndexColumnUniqueId();

Review Comment:
   I'll add a check to prevent duplicated adding.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to