Aaaaaaron commented on a change in pull request #2143:
URL: https://github.com/apache/calcite/pull/2143#discussion_r487387680



##########
File path: core/src/main/java/org/apache/calcite/rel/RelNode.java
##########
@@ -232,6 +233,21 @@
    */
   RelNode onRegister(RelOptPlanner planner);
 
+  /**
+   * Returns a relational expression string of this {@code RelNode}.
+   * The string returned is the same as
+   * {@link RelOptUtil#toString(org.apache.calcite.rel.RelNode)}.
+   *
+   * This method is intended mainly for use while debugging in an IDE,
+   * as a convenient short-hand for RelOptUtil.toString.
+   * We recommend that sub-classes do not override this method.
+   *
+   * @return Relational expression string of this {@code RelNode}
+   */
+  default String explain() {

Review comment:
       @rubenada Thanks for your advice, indeed better!

##########
File path: core/src/main/java/org/apache/calcite/rel/RelNode.java
##########
@@ -232,6 +233,21 @@
    */
   RelNode onRegister(RelOptPlanner planner);
 
+  /**
+   * Returns a relational expression string of this {@code RelNode}.
+   * The string returned is the same as
+   * {@link RelOptUtil#toString(org.apache.calcite.rel.RelNode)}.
+   *
+   * This method is intended mainly for use while debugging in an IDE,
+   * as a convenient short-hand for RelOptUtil.toString.
+   * We recommend that sub-classes do not override this method.
+   *
+   * @return Relational expression string of this {@code RelNode}
+   */
+  default String explain() {

Review comment:
       revised




----------------------------------------------------------------
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:
[email protected]


Reply via email to