korlov42 commented on a change in pull request #9103: URL: https://github.com/apache/ignite/pull/9103#discussion_r638838810
########## File path: modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/CorrelatedNestedLoopJoinRule.java ########## @@ -81,7 +81,7 @@ public CorrelatedNestedLoopJoinRule(Config cfg) { final RexBuilder rexBuilder = cluster.getRexBuilder(); final RelBuilder relBuilder = relBuilderFactory.create(rel.getCluster(), null); - final Set<CorrelationId> correlationIds = new HashSet<>(); + Set<CorrelationId> correlationIds = RelOptUtil.getVariablesUsed(rel.getRight()); Review comment: why does CNLJ's right edge should be correlated by all variables? -- 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