zzwqqq commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4610909111
##########
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.
*
* @param rel Relational expression whose fields to visit
* @param visitor Visitor used for read-only analysis
- * @return Whether the operator family is supported; true after visiting its
- * expression fields, false without invoking the visitor
+ * @return True if this method can visit expressions for the node type, even
Review Comment:
Thanks. I've used `rel` and `kind` in the return description.
--
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]