Uploaded image for project: 'Pentaho Analysis - Mondrian'
  1. Pentaho Analysis - Mondrian
  2. MONDRIAN-1502

Parent-child hierarchies don't use closure tables in lagunitas

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      On lagunitas branch at present (and also unwrap branch, where I'm working on MONDRIAN-1493, but will shortly be merged into lagunitas), queries on parent-child hierarchies don't use closure tables. RolapCubeLevel.closedPeerCubeLevel doesn't get initialized, so the logic gets skipped. Queries produce the right result, but they do it by exhaustive queries on the Employees hierarchy.

      Here are the tests that produce the right results but don't use closure tables:

      testLeaf
      testSharedClosureParentChildHierarchy
      testChildrenOfAll
      testDistinctChildrenOfAll
      testDistinctSubtree
      testOneAboveLeaf
      testParentChildDescendantsLeavesBottom
      testParentChildDescendantsLeavesBottom
      testHierarchyFalseCycle

      All of these tests fail if we try to enable closure tables. Look for code disabled by Bug.<thisBugNumber>, enable it, and check that the tests pass and use the closure table to get cell values.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jhyde Julian Hyde (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: