Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Many rules are only applicable to certain types of plan. Currently a rule has two choices if it cannot optimize the given plan:
- Return a clone of the input plan
- Return an Err
Describe the solution you'd like
I would like a third option, where the rule can return "not applicable".
Describe alternatives you've considered
None
Additional context
None