Re: Serializing Relational Algebra to JSON

2021-06-06 Thread Stamatis Zampetakis
Hi Lana, I think what you are looking for is RelOptUtil#dumpPlan [1] using SqlExplainFormat.JSON as one of the parameters. You can check the callers of this method for examples on how to use it. Best, Stamatis [1]

Serializing Relational Algebra to JSON

2021-06-06 Thread Lana Ramjit
Hi all, I was reading this old blog post from OmniSci and they mention that to use Calcite-generated plans in their C++ library, they serialized the relational algebra output by Calcite into JSON. I'd

Possibly incorrect assertion in the TopDownRuleDriver.DeriveTrait.derive

2021-06-06 Thread Vladimir Ozerov
Hi, When doing a trait derivation in the non-OMAKASE mode, the following lines of code are invoked: 1: RelSubset relSubset = planner.register(newRel, rel); 2: assert relSubset.set == planner.getSubset(rel).set; The assertion on the second line may fail because the "newRel" is assigned not the