julianhyde commented on a change in pull request #1102: [CALCITE-1515]
RelBuilder supports creating TableFunctionScan
URL: https://github.com/apache/calcite/pull/1102#discussion_r265400074
##########
File path: core/src/main/java/org/apache/calcite/rel/core/RelFactories.java
##########
@@ -549,6 +555,34 @@ public RelNode createMatch(RelNode input, RexNode pattern,
partitionKeys, orderKeys, interval);
}
}
+
+ /**
+ * Can create a {@link TableFunctionScan}
+ * of the appropriate type for a rule's calling convention.
+ */
+ public interface TableFunctionScanFactory {
+ /** Creates a {@link TableFunctionScan}. */
+ RelNode createTableFunctionScan(RelOptCluster cluster,
+ List<RelNode> inputs, RexNode rexCall, Type elementType,
+ RelDataType rowType, Set<RelColumnMapping> columnMappings);
Review comment:
Is `rowType` necessary? Is it possible to ask the table function to deduce
its own row type?
----------------------------------------------------------------
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]
With regards,
Apache Git Services