KeeProMise commented on code in PR #59594:
URL: https://github.com/apache/doris/pull/59594#discussion_r2667273064


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewRule.java:
##########
@@ -371,7 +373,7 @@ protected List<Plan> doRewrite(StructInfo queryStructInfo, 
CascadesContext casca
                     return rewriteResults;
                 }
                 boolean partitionNeedUnion = 
PartitionCompensator.needUnionRewrite(invalidPartitions, cascadesContext);
-                boolean canUnionRewrite = canUnionRewrite(queryPlan,
+                canUnionRewrite = canUnionRewrite && canUnionRewrite(queryPlan,

Review Comment:
   @seawinde Since we do not want Doris to read external data for union 
compensation during query rewriting — as our external tables are excessively 
large and may cause performance issues in Doris — queries will be routed to 
Spark for processing when Doris fails to hit the materialized view.



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