Re: Link4j AST Node | ExpressionWriter Runtime Exception

2020-05-27 Thread Julian Hyde
Do you really need to create a new kind of Linq4j node?

On Wed, May 27, 2020 at 11:03 AM Ravi Kapoor  wrote:
>
> Hi Team,
>
> The Java AST Node interface in the calcite - linq4j project has below API
> for converting expressions to java code
>
> *void accept(ExpressionWriter expressionWriter)*
>
> However, ExpressionWriter class is declared as package protected and not
> part of exported API.
> Could not understand the rationale behind this as the tree itself is public
>
> I need to create custom Node by extending a Statement or Expression from
> Linq4j and override the accept of writer in order to covert my own Node
> expression.
>
> In this case it goes to the parent accept() method which is of AbstractNode
> and throws RuntimeException - unparse not supported.
>
> Can you please check on this?
>
> --
> Thanks,
> Ravi Kapoor
> +91-9818764564
> kapoorrav...@gmail.com


Link4j AST Node | ExpressionWriter Runtime Exception

2020-05-27 Thread Ravi Kapoor
Hi Team,

The Java AST Node interface in the calcite - linq4j project has below API
for converting expressions to java code

*void accept(ExpressionWriter expressionWriter)*

However, ExpressionWriter class is declared as package protected and not
part of exported API.
Could not understand the rationale behind this as the tree itself is public

I need to create custom Node by extending a Statement or Expression from
Linq4j and override the accept of writer in order to covert my own Node
expression.

In this case it goes to the parent accept() method which is of AbstractNode
and throws RuntimeException - unparse not supported.

Can you please check on this?

-- 
Thanks,
Ravi Kapoor
+91-9818764564
kapoorrav...@gmail.com