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

TopDownRuleDriver.DeriveTrait.derive produces wrong AssertionError when registering new nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.27.0
    • None
    • core

    Description

      TopDownRuleDriver.DeriveTrait.derive asserts that a derived node belongs to the same RelSet as the original node.

      If the original node N1 refers to set S1, the derived node N2 might be registered in the set S2, if S1 was merged to S2 between the registration of N1 and derivation of N2.

      Currently, we compare the original set of the original node N1 with the canonical set of the derived node N2. This leads to false assertions.

      Dicussion:
      https://lists.apache.org/thread.html/rd26b7a0f55906cebf5abcaf349ab2bec414e164fa4d9f63789bf34c8%40%3Cdev.calcite.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              vozerov Vladimir Ozerov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m