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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/AbstractMaterializedViewAggregateRule.java:
##########
@@ -649,11 +648,9 @@ protected Pair<Set<? extends Expression>, Set<? extends 
Expression>> topPlanSpli
         Set<Expression> topFunctionExpressions = new HashSet<>();
         queryTopPlan.getOutput().forEach(expression -> {
             ExpressionLineageReplacer.ExpressionReplaceContext replaceContext =
-                    new 
ExpressionLineageReplacer.ExpressionReplaceContext(ImmutableList.of(expression),
-                            ImmutableSet.of(), ImmutableSet.of(), 
queryStructInfo.getTableBitSet());
+                    new 
ExpressionLineageReplacer.ExpressionReplaceContext(ImmutableList.of(expression));
             queryTopPlan.accept(ExpressionLineageReplacer.INSTANCE, 
replaceContext);
-            if (!Sets.intersection(bottomAggregateFunctionExprIdSet,
-                    
replaceContext.getExprIdExpressionMap().keySet()).isEmpty()) {
+            if (!Sets.intersection(bottomAggregateFunctionExprIdSet, 
replaceContext.getUsedExprIdSet()).isEmpty()) {

Review Comment:
   have fixed



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