EmmyMiao87 commented on a change in pull request #4317:
URL: https://github.com/apache/incubator-doris/pull/4317#discussion_r468364142
##########
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:
We allowed to create mv on unique key if and only if materialized view
of full key column.
----------------------------------------------------------------
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]