seawinde commented on code in PR #45855:
URL: https://github.com/apache/doris/pull/45855#discussion_r1897059092


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/InitMaterializationContextHook.java:
##########
@@ -104,6 +107,56 @@ protected void 
doInitMaterializationContext(CascadesContext cascadesContext) {
         }
     }
 
+    private List<MaterializationContext> 
getMvIdWithUseMvHint(List<MaterializationContext> mtmvCtxs,
+                                                                UseMvHint 
useMvHint) {
+        List<MaterializationContext> hintMTMVs = new ArrayList<>();
+        for (MaterializationContext mtmvCtx : mtmvCtxs) {
+            List<String> mvQualifier = 
mtmvCtx.generateMaterializationIdentifier();
+            if (useMvHint.getUseMvTableColumnMap().containsKey(mvQualifier)) {
+                hintMTMVs.add(mtmvCtx);
+            }
+        }
+        return hintMTMVs;
+    }
+
+    private List<MaterializationContext> 
getMvIdWithNoUseMvHint(List<MaterializationContext> mtmvCtxs,
+                                                                    UseMvHint 
useMvHint) {
+        List<MaterializationContext> hintMTMVs = new ArrayList<>();
+        if (useMvHint.isAllMv()) {
+            useMvHint.setStatus(Hint.HintStatus.SUCCESS);
+            return hintMTMVs;

Review Comment:
   this means no mv can be written?



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

Reply via email to