Thanks a lot Haisheng. I will try it and come back to you if I have some further questions. :)
Best, Makis > On 12 Nov 2019, at 11:04 PM, Haisheng Yuan <h.y...@alibaba-inc.com> wrote: > > Hi Makis, > > You can use HepPlanner and your customized transoformation rule to rewrite > the optimized plan. Top-down or Bottom-up can also be specified. > Many systems have this kind of post processing phase. > > - Haisheng > > ------------------------------------------------------------------ > 发件人:Serafeim (Makis) Papadias<makisnt...@gmail.com> > 日 期:2019年11月13日 05:37:37 > 收件人:<dev@calcite.apache.org> > 主 题:Top-down pass of an optimized plan > > Dear all, > > I am performing a Volcano optimisation pass first and I receive the root of > the optimised plan from the standard Program in [1]. Afterwards, I want to > perform a top-down pass to the optimised plan and change it a bit by placing > certain operators at specific points. > > Do you have any ideas on how to do this properly in Calcite? > > Thanks in advance. > > Best, > Makis > > > [1] — > https://calcite.apache.org/apidocs/org/apache/calcite/tools/Programs.html > <https://calcite.apache.org/apidocs/org/apache/calcite/tools/Programs.html>