EmmyMiao87 commented on a change in pull request #3036: Support different keys 
type between mv and base table
URL: https://github.com/apache/incubator-doris/pull/3036#discussion_r388043785
 
 

 ##########
 File path: 
fe/src/main/java/org/apache/doris/analysis/CreateMaterializedViewStmt.java
 ##########
 @@ -188,6 +189,7 @@ else if (functionChild0 instanceof CastExpr
                                                         + "Error function: " + 
functionCallExpr.toSqlImpl());
                 }
                 meetAggregate = true;
+                mvKeysType = KeysType.AGG_KEYS;
 
 Review comment:
   This query `select k1, k2, sum(v1) from table` will be forbidden by analyzer.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to