ihuzenko commented on a change in pull request #1610: [CALCITE-3525] 
RexSimplify: eliminate redundant rex calls in OR
URL: https://github.com/apache/calcite/pull/1610#discussion_r358248236
 
 

 ##########
 File path: 
core/src/main/java/org/apache/calcite/rel/rules/ReduceExpressionsRule.java
 ##########
 @@ -164,6 +164,10 @@ public FilterReduceExpressionsRule(Class<? extends 
Filter> filterClass,
           "ReduceExpressionsRule(Filter)");
     }
 
+    @Override public boolean matches(RelOptRuleCall call) {
+      return RelOptUtil.getVariablesUsed(call.rel(0).getInputs()).isEmpty();
 
 Review comment:
   removed

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