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 like

Re: onMatch rule not triggering on subquery

2021-02-13 Thread Lana Ramjit
lter? or maybe > decorrelate the query after the expansion? > > thanks > Michael > > On Sat, Feb 13, 2021 at 12:10 PM Julian Hyde > wrote: > > > Lana, that makes perfect sense. The rule engine does not descent into > > RexSubQuery. (We can debate whether it

Re: onMatch rule not triggering on subquery

2021-02-12 Thread Lana Ramjit
I am not sure if this helps and one of the dev team will probably know better than me, but I think I ran into a similar issue. The withOperandSupplier matches LogicalTableScan nodes, but the subquery is a RexSubQuery contained in a LogicalFilter; so it skips the LogicalFilter and does not descend i

Adding new operators to Calcite

2021-01-27 Thread Lana Ramjit
Hi all, Apologies in advance for the longer e-mail! I am a grad student adapting Calcite for use in a research project prototype. The functionality I am trying to add involves inserting non-executable operators into a plan to represent abstract sets of queries. For example, it takes two queries li