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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: cube
    • Labels:
      None
    • Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: