Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1471

JoinCandidate's children should not share same instance of a storage candidate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • cube
    • None
    • Patch

    Description

      The issue is in Join candidates of the kind Join[Union[a,b]; Union[a,c]]. If the instance of a is shared in different trees of a JoinCandidate, the rewritten query will be wrong. JoinCandidate's children set exclusive measure phrase indices, and that is done via retain method of list. So let's say union1 is answering [0,1] measures and union2 is answering [2,3] measures, and since [0,1,2,3].retain([0,1]).retain([2,3]) == [], it ends up answering no measures at all

      Attachments

        1. LENS-1471.03.patch
          5 kB
          Rajat Khandelwal
        2. LENS-1471.02.patch
          4 kB
          Rajat Khandelwal
        3. LENS-1471.01.patch
          4 kB
          Rajat Khandelwal

        Activity

          People

            prongs Rajat Khandelwal
            prongs Rajat Khandelwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: