Here’s one use in a test: https://github.com/apache/calcite/blob/90a431691c50e9ffccf18356ed4e87e57643bf43/core/src/test/java/org/apache/calcite/test/RelBuilderTest.java#L314 <https://github.com/apache/calcite/blob/90a431691c50e9ffccf18356ed4e87e57643bf43/core/src/test/java/org/apache/calcite/test/RelBuilderTest.java#L314>. There’s another use a few lines later.
There aren’t many calls to RelBuilder.functionScan because it was only added recently: https://issues.apache.org/jira/browse/CALCITE-1515 <https://issues.apache.org/jira/browse/CALCITE-1515>. Julian > On Jun 13, 2019, at 9:05 AM, Anton Haidai <[email protected]> wrote: > > Hello, > Every Table Function usage example I was able to find is SQL-based, > something like: > > select * from table("s"."GenerateStrings"(5)) as t(n, c) > > Could you please provide an example of Table Function scan that is > based on RelBuilder instead of SQL? > > -- > Best regards, > Anton.
