calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Mior <mm...@apache.org>
Subject Re: Match Converter Rule based on Child Nodes
Date Tue, 20 Aug 2019 14:06:52 GMT
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
mmior@apache.org

Le ven. 9 août 2019 à 08:48, rahul patwari
<rahulpatwari8383@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

Mime
View raw message