Skip to content

Check if second run of rule does not fire in RuleTester #499

@losipiuk

Description

@losipiuk

It seems natural that optimizer Rule if run on output of the same Rule should not fire again.
While we may think of rules that do only part of work on first run, and some continuation of work on the second run, it does not seem like necessary feature.

If we agree that we do not need that, let's add a check to RuleTest verifying that:

rule.apply(rule.apply(plan)) == Optional.empty()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions