xndai commented on a change in pull request #1884:
URL: https://github.com/apache/calcite/pull/1884#discussion_r417057932



##########
File path: core/src/main/java/org/apache/calcite/tools/RelBuilder.java
##########
@@ -230,6 +230,18 @@ public RelDataTypeFactory getTypeFactory() {
     return cluster.getTypeFactory();
   }
 
+  /** Return the RelFactories Struct. */
+  public RelFactories.Struct getRelFactoriesStruct() {
+    return this.struct;
+  }
+
+  /** Set the RelFactories Struct. Conventions can use a different 
RelFactories struct to
+   *  create physical RelNode.*/
+  public RelBuilder setRelFactoriesStruct(RelFactories.Struct newStruct) {
+    this.struct = newStruct;
+    return this;
+  }
+

Review comment:
       Then it's not really transforming a rel builder, it would be more like 
"creating" a new rel builder.




----------------------------------------------------------------
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