Re: Convert RexSubQuery to RexNode

2016-11-30 Thread Julian Hyde
org] > Sent: Wednesday, November 30, 2016 12:31 PM > To: dev@calcite.apache.org > Subject: Re: Convert RexSubQuery to RexNode > > Adding a TableFunctionScanFactory would be part of it. But also adding a > functionScan method, analogous to the scan method but for table functions.

RE: Convert RexSubQuery to RexNode

2016-11-30 Thread Anton Mushin
@calcite.apache.org Subject: Re: Convert RexSubQuery to RexNode Adding a TableFunctionScanFactory would be part of it. But also adding a functionScan method, analogous to the scan method but for table functions. On Wed, Nov 30, 2016 at 12:16 AM, Anton Mushin wrote: > Hi Julian, >> RelBui

RE: Convert RexSubQuery to RexNode

2016-11-30 Thread Nikolay Vasilishin
ht, I have to try to solve my issue in another way. -Original Message- From: Julian Hyde [mailto:jh...@apache.org] Sent: Monday, November 28, 2016 7:45 PM To: dev@calcite.apache.org Subject: Re: Convert RexSubQuery to RexNode RelBuilder.call deals with a scalar function, and I think wha

Re: Convert RexSubQuery to RexNode

2016-11-30 Thread Julian Hyde
.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/tools/RelBuilder.java#L125 > > -Original Message- > From: Julian Hyde [mailto:jh...@apache.org] > Sent: Monday, November 28, 2016 8:45 PM > To: dev@calcite.apache.org > Subject: Re: Convert RexSubQuery to Re

RE: Convert RexSubQuery to RexNode

2016-11-30 Thread Anton Mushin
onvert RexSubQuery to RexNode RelBuilder.call deals with a scalar function, and I think what you need is a table function. (In java both are just functions, but in SQL, or relational algebra, they are different beasts.) Calcite has a TableFunctionScan, which is a RelNode, takes a function, 0 or

Re: Convert RexSubQuery to RexNode

2016-11-28 Thread Julian Hyde
RelBuilder.call deals with a scalar function, and I think what you need is a table function. (In java both are just functions, but in SQL, or relational algebra, they are different beasts.) Calcite has a TableFunctionScan, which is a RelNode, takes a function, 0 or more RelNode inputs, and 0 or