zzwqqq commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4610973412
##########
core/src/main/java/org/apache/calcite/sql2rel/CorrelateProjectExtractor.java:
##########
@@ -208,12 +216,20 @@ private static RelNode visitCorrelationScope(RelNode
root, CorrelationId id,
});
}
- /** Selects outermost deterministic computations over one correlation.
+ /** Selects deterministic expressions for evaluation on the outer input.
+ *
+ * <p>The collector stores each selected {@link RexNode} with its offset
among
+ * the fields added to the left input. A Project computes these fields.
+ * The replacement visitor replaces their uses on the right with
Review Comment:
Thanks. I meant `replacements`, the `CorrelatedExpressionSelector` used to
rewrite the right input. Its selected method replaces each selected expression
with a `RexFieldAccess` pointing to the corresponding field on the left.
--
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]