zzwqqq commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4610903456
##########
core/src/main/java/org/apache/calcite/plan/RelOptUtil.java:
##########
@@ -362,22 +359,16 @@ public static boolean isDeterministic(RelNode rel) {
return false;
}
- /** Visits a supported node's expression fields for read-only analysis.
+ /** Applies a shuttle to one relational node's expression fields.
+ * Relational inputs are not visited.
*
- * <p>Does not visit relational inputs, expand planner wrappers, visit
- * literal-only data (such as {@link Values} tuples and {@link Window}
- * constants), or apply rewritten expressions. The visitor controls traversal
- * inside expressions, including sub-query plans. The same expression may be
- * visited more than once.
- *
- * <p>An unsupported operator family returns false without invoking the
- * visitor. A supported operator may have no expressions to visit. Exceptions
- * thrown by the visitor are propagated.
+ * <p>The shuttle controls visits to expression children and sub-query plans.
+ * Rewritten expressions are ignored. An expression may be visited more than
once.
Review Comment:
Thanks. This method discards any replacements produced by the shuttle. I've
clarified that in the Javadoc.
--
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]