Calcite: can we rewrite the optimized RelNode?

可紊 提交于 2020-03-25 19:38:05

问题


In Calcite, after optimization provided by the default VolcanoPlanner, we can get an optimized RelNode, but can we have a further optimization? For example I want to add an ElasticsearchSort or something like that to limit the dataset we handle.

Someone suggests we can define a RelOptRule, but since VolcanoPlanner handles the optimization in dynamic programming way, not sure if the rule can be applied in the right order. Any ideas?


回答1:


You don't have to use VolcanoPlanner. There's also HepPlanner which just applies the rules that you give it as a HepProgram.



来源:https://stackoverflow.com/questions/60537311/calcite-can-we-rewrite-the-optimized-relnode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!