qidaye commented on code in PR #48988:
URL: https://github.com/apache/doris/pull/48988#discussion_r1992618096
##########
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:
It's not recreating. We set the column unique ids for index to make sure the
index is associated with column unique id.
Because the older version index dose not have the columnUniqueIds filed,
when Doris upgrades to new version which have the columnUniqueIds,
columnUniqueIds will be initialized to empty list.
--
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]