yangzhg commented on a change in pull request #4256:
URL: https://github.com/apache/incubator-doris/pull/4256#discussion_r467671444
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java
##########
@@ -537,6 +538,13 @@ private RollupJobV2 createMaterializedViewJob(String
mvName, String baseIndexNam
}
}
}
+ if (KeysType.UNIQUE_KEYS == keysType && olapTable.hasSequence()) {
+ if (meetValue) {
+ // add the sequence column
+ rollupSchema.add(keysNumOfRollup, new
Column(olapTable.sequenceColName, olapTable.getSequenceType(),
+ false, AggregateType.MAX, null, ""));
Review comment:
why do not check if sequenceColName ia alread exist in rollupSchema
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]