You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Khai Tran <kh...@linkedin.com> on 2018/07/13 19:25:04 UTC

Comparing two calcite logicplans

Hi Calcite community,
I'm working on the multi query optimization problem where I have to find a common subplan among a set of given logical plans. So I just wonder if in the Calcite codebase  we have any utility function that compares two RelNodes and let us know whether they are doing the same thing. For example a Filter == another Filter if their inputs are equal and rex conditions are equal, or a Project = another Project if their input are equals and they have a same set of projection expressions?

Thanks,
Khai