zzwqqq commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4610934979
##########
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
+ * {@link RexFieldAccess} references.
+ *
+ * <p>Selected expressions go to {@link #selected(RexNode)} without visiting
Review Comment:
Thanks. Moved to `selected`. It receives an expression chosen for extraction
and returns the expression to use at that position. Its subexpressions are not
selected separately.
--
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]