danny0405 commented on a change in pull request #1840: [CALCITE-3753] Remove 
rule queue importance
URL: https://github.com/apache/calcite/pull/1840#discussion_r389206283
 
 

 ##########
 File path: 
core/src/main/java/org/apache/calcite/rel/rules/AggregateRemoveRule.java
 ##########
 @@ -123,6 +123,7 @@ public void onMatch(RelOptRuleCall call) {
       // aggregate functions, add a project for the same effect.
       relBuilder.project(relBuilder.fields(aggregate.getGroupSet()));
     }
+    call.getPlanner().setImportance(aggregate, 0d);
     call.transformTo(relBuilder.build());
 
 Review comment:
   Why we need this change?

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

Reply via email to