morningman commented on a change in pull request #4317: URL: https://github.com/apache/incubator-doris/pull/4317#discussion_r467932365
########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/MaterializedViewHandler.java ########## @@ -432,6 +432,9 @@ private RollupJobV2 createMaterializedViewJob(String mvName, String baseIndexNam List<Column> newMVColumns = Lists.newArrayList(); int numOfKeys = 0; if (olapTable.getKeysType().isAggregationFamily()) { + if (addMVClause.getMVKeysType() != KeysType.AGG_KEYS) { Review comment: Do we allowed to create mv on unique key table? if yes, how to create it? ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org