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

 ##########
 File path: 
core/src/main/java/org/apache/calcite/rel/rules/FilterProjectTransposeRule.java
 ##########
 @@ -142,21 +137,24 @@ protected FilterProjectTransposeRule(
   public void onMatch(RelOptRuleCall call) {
     final Filter filter = call.rel(0);
     final Project project = call.rel(1);
+    final RelBuilder relBuilder = call.builder();
+    final RelNode newFilterRel = createNewFilterBelowProject(filter, project, 
relBuilder);
 
-    if (RexOver.containsOver(project.getProjects(), null)) {
 
 Review comment:
   I have the impression that this refactoring makes the control optional while 
it shouldn't. Plus the comment is helpful so I wouldn't remove it.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to