Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5727

RelOptFixture#checkUnchanged should assert planAfter is not present

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.34.0
    • 1.35.0
    • tests

    Description

      This is discovered while I'm review another PR. And there are already some tests that using checkUnchanged, but the xml file still contains planAfter section, such as RelOptRulesTest#testNoReduceAverage.

      IMO, there is no need to keep planAfter for checkUnchanged, and it does more harm than good to keep it. Even we can make planAfter the same with planBefore, it will bring burden for reading (because we'll identify the difference of planAfter and planBefore). And it will be more harmful when planAfter is different from planBefore.

      Attachments

        Issue Links

          Activity

            People

              libenchao Benchao Li
              libenchao Benchao Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: