[ https://issues.apache.org/jira/browse/CALCITE-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16804165#comment-16804165 ]
Julian Hyde commented on CALCITE-1515: -------------------------------------- [~Chunwei Lei], I did some fix-up (removing the redundant 'inputCount' argument to CURSOR, and allowing a table function to be called with zero inputs). Please take a look at https://github.com/julianhyde/calcite/commit/bd116f45fb9438293a55260717500391bf977197; if you +1 I will squash and commit. > Support TableFunctionScan in RelBuilder > --------------------------------------- > > Key: CALCITE-1515 > URL: https://issues.apache.org/jira/browse/CALCITE-1515 > Project: Calcite > Issue Type: Bug > Affects Versions: 1.10.0 > Reporter: Anton Mushin > Assignee: Chunwei Lei > Priority: Minor > Labels: pull-request-available > Time Spent: 4.5h > Remaining Estimate: 0h > > Calcite has a TableFunctionScan, which is a RelNode, takes a function, 0 or > more RelNode inputs, and 0 or more other arguments. > RelBuilder does not support TableFunctionScan yet. > add In RelBuilder TableFunctionScanFactory which will create > LogicalTableFunctionScan like as for LogicalTableScan and factory for others > RelNodes [ > [example|https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/tools/RelBuilder.java#L125] > ] > also adding a functionScan method, analogous to the scan method but for table > functions. -- This message was sent by Atlassian JIRA (v7.6.3#76005)