Re: Adding RelOptMaterializations to a planner

2019-10-08 Thread XING JIN
Hi Shubham, In my understanding, same RelOptPlanner is the way to go, as one VolcanoPlanner#registerMaterializations calls RelOptMaterializations#useMaterializedViews and picks the best algebra expression tree. I'd suggest to create all the materializations into a VolcanoPlanner and then

Re: Adding RelOptMaterializations to a planner

2019-10-06 Thread Stamatis Zampetakis
Hi Shubham, Regarding point 1) you can easily get around it by defining a few of your own classes in a package with the same name as Prepare although I doubt is the right approach. Perhaps MaterializationTest [1] can help you get a few more ideas on how to use the respective service. Other than

Adding RelOptMaterializations to a planner

2019-10-04 Thread Shubham Kumar
Hi contributors, I am trying to retrieve materialized view query rewrite from Calcite. In order to do that, I have created a planner and wanted to get the optimized relNode after applying Materializations which is equivalent to applying [1] present in Prepare class of Calcite. However, I am