Although requirement of such functionality is not usual but there is actually a 
method 
"org.apache.calcite.prepare.CalcitePrepareImpl.EmptyScalarTranslator.toRex(Expression
 expression)" which intended to do translation from linq4j expressions to rex 
nodes. But since the method is currently supposed to be serving Calcite 
internal calls only I don't think everything is there.

Hongze

> On Jun 5, 2019, at 05:15, Haisheng Yuan <[email protected]> wrote:
> 
> Hi Khai,
> 
> I don't think there is such kind of utility function in Calcite.
> 
> - Haisheng 
> Yuan------------------------------------------------------------------
> 发件人:Khai Tran<[email protected]>
> 日 期:2019年06月05日 01:28:21
> 收件人:[email protected] ([email protected])<[email protected]>
> 主 题:Linq expressions to RexNode
> 
> Just a bit strange, but just wonder if in calcite code base, is there any 
> util function to convert linq expression back to RexNode?
> 

Reply via email to