rubenada commented on a change in pull request #1020: [CALCITE-2812] Add 
algebraic operators to allow expressing recursive queries (Ruben Quesada Lopez)
URL: https://github.com/apache/calcite/pull/1020#discussion_r255429972
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/tools/RelBuilder.java
 ##########
 @@ -1616,6 +1619,68 @@ public RelBuilder minus(boolean all, int n) {
     return setOp(all, SqlKind.EXCEPT, n);
   }
 
+  /**
+   * Creates a {@link LogicalDeltaTableScan} of a delta work table (used to 
accumulate results in
+   * recursive union operation), using as its row type the top of the stack, 
and not max depth
+   * Returns this builder.
+   */
+  public RelBuilder deltaScan(String tableName) {
+    return this.deltaScan(tableName, this.peek().getRowType());
+  }
+
+  /**
+   * Creates a {@link LogicalDeltaTableScan} of a delta work table (used to 
accumulate results in
+   * recursive union operation), using as its row type the top of the stack, 
and a certain max depth
+   * Returns this builder.
+   */
+  public RelBuilder deltaScan(String tableName, int maxDepth) {
 
 Review comment:
   @zabetak you're right, I have committed a new version with a refactoring 
using this approach.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to