If you just want to control whether the rule gets applied, you can override RelOptRule#matches which canreturns a boolean indicating whether the rule should be applied. -- Michael Mior mm...@apache.org
Le ven. 9 août 2019 à 08:48, rahul patwari <rahulpatwari8...@gmail.com> a écrit : > > Hi, > > We want to create a ConverterRule which converts the default calling > Convention to external storage-specific calling convention depending on the > Children nodes, like RelOptRule. > > For example, depending on the properties of the child nodes, we want to > convert LogicalJoin to external system's specific Join implementation. > > Currently, ConverterRule > <https://github.com/apache/calcite/blob/5212d6c47e36995943f4d955a1714bf03eb08e7e/core/src/main/java/org/apache/calcite/rel/convert/ConverterRule.java#L75> > cannot take Children and Child Policy is RelOptRuleOperandChildPolicy.ANY. > > What is the preferred way to achieve this task? > > Thanks, > Rahul