Missed the email because was not subscribed to the mailing list.

Anyways thanks for the pointer, will have a look at RelJson and RelWriterTest. 
Filed a ticket here - https://issues.apache.org/jira/browse/CALCITE-5219

On 2022/07/22 17:28:45 Julian Hyde wrote:
> I don’t know of any such facility. I suppose someone could do for AST trees
> what RelJson and RelWriterTest do for RelNode trees.
> 
> Can you please log a Jira case for this? It’s good to have a placeholder in
> case someone feels like picking it up in future.
> 
> Julian
> 
> [1]
> https://github.com/apache/calcite/blob/HEAD/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java
> [2]
> https://github.com/apache/calcite/blob/HEAD/core/src/test/java/org/apache/calcite/plan/RelWriterTest.java
> 
> 
> On Jul 21, 2022, at 5:36 AM, Parag Jain <[email protected]> wrote:
> 
> Hello,
> 
> We are using calcite in our project to parse and manipulate SQL. We have
> also extended the parser for our use case.
> 
> Now, we would like to serialize the parsed SqlNode with type information
> and pass it to a different system over wire for query intelligence. We were
> thinking of using protobuf for this, I was wondering if anyone has already
> done similar work or thought about a good approach to achieve serialization
> of a parsed query.
> 
> Thanks
> 

Reply via email to