You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/05/06 02:47:01 UTC

[GitHub] [calcite] danny0405 commented on a change in pull request #1884: [CALCITE-3972] Allow RelBuilder to create RelNode with convention and use it for trait convert

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



##########
File path: core/src/main/java/org/apache/calcite/tools/RelBuilder.java
##########
@@ -173,6 +173,12 @@ protected RelBuilder(Context context, RelOptCluster cluster,
         new RexSimplify(cluster.getRexBuilder(), predicates, executor);
   }
 
+  private RelBuilder(Context context, RelOptCluster cluster,
+                     RelOptSchema relOptSchema, Deque<Frame> stack) {
+    this(context, cluster, relOptSchema);
+    this.stack.addAll(stack);
+  }

Review comment:
       This constructor is not necessary.




----------------------------------------------------------------
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:
users@infra.apache.org