Hello,

I think the closest thing to what you are asking is
RelOptUtil#registerDefaultRules [1].

Best,
Stamatis

[1]
https://github.com/apache/calcite/blob/94502f51e6a12cd53cec88b39d21b4fec6070428/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java#L2050

On Sun, Feb 28, 2021 at 12:38 AM Priyendra Deshwal <[email protected]>
wrote:

> Hello,
>
> I am looking to put together a quick and dirty query optimizer for a
> project. Going through calcite rules, there are a lot of pre-defined rules.
> Is there some "pre-packaged" collection of these rules that can serve as a
> good starting point for an optimizer? I came across the following
> "standard" program which feels relevant but going through the code, I don't
> see a lot of rules being invoked from it. In particular, I was expecting to
> see a bunch of rules defined in CoreRules to be listed there but it does
> not seem like they are? Unless I am missing something.
>
>
> https://github.com/apache/calcite/blob/92309ed4c2d2156eaffc3900d55abc7ff741c0da/core/src/main/java/org/apache/calcite/tools/Programs.java#L250-L283
>
> Let me know if Calcite provides some good starting point that I can build
> upon.
>
> Regards!
>

Reply via email to