zstan commented on code in PR #4328:
URL: https://github.com/apache/calcite/pull/4328#discussion_r2073642318


##########
core/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java:
##########
@@ -910,6 +910,24 @@ private static void matchJoin(SubQueryRemoveRule rule, 
RelOptRuleCall call) {
     int nFieldsLeft = join.getLeft().getRowType().getFieldCount();
     int nFieldsRight = join.getRight().getRowType().getFieldCount();
 
+    // Correlation columns are also should be considered.

Review Comment:
   done



##########
core/src/main/java/org/apache/calcite/plan/RelOptUtil.java:
##########
@@ -4552,6 +4552,37 @@ private void acceptFields(final List<RelDataTypeField> 
fields) {
     }
   }
 
+  /** Extension of {@link RelOptUtil.InputFinder} with subquery lookup. */

Review Comment:
   done



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

Reply via email to