yashlimbad commented on code in PR #4840:
URL: https://github.com/apache/calcite/pull/4840#discussion_r3084151393


##########
core/src/main/java/org/apache/calcite/plan/RelOptUtil.java:
##########
@@ -3000,6 +3025,38 @@ public static boolean classifyFilters(
     return !filtersToRemove.isEmpty();
   }
 
+  /**
+   * Returns whether {@code node} references any {@link CorrelationId} in
+   * {@code ids}, either directly via a {@link RexCorrelVariable} (typically
+   * reached through a {@link org.apache.calcite.rex.RexFieldAccess}) or
+   * transitively via the inner plan of a {@link RexSubQuery}.
+   */
+  private static boolean referencesAnyCorrelation(RexNode node,

Review Comment:
   got 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to