Pentaho Analysis - Mondrian
  1. Pentaho Analysis - Mondrian
  2. MONDRIAN-925

VisualTotals + drillthrough throws Exception: cannot cast VisualTotalMember to RolapCalculatedMember (RolapCell.java)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Unknown Unknown
    • Resolution: Fixed
    • Affects Version/s: 3.2.1 GA (3.7.0 GA Suite Release)
    • 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.
    • QA Validation Status:
      Validated by QA

      Description

      Using VisualTotals, I suddenly was getting errors thrown when trying
      to check for drillthrough capability on a cell, although for leaf
      cells this should be possible. (class cast exception - cannot cast
      VisualTotalMember to RolapCalculatedMember) in RolapCell.java.

      proposed change (fix) [RolapCell.java - in replaceTrivialCalcMember() ]:

            RolapCalculatedMember measure = (RolapCalculatedMember) member;
            final Exp expr = measure.getFormula().getExpression();
      to:

            final Exp expr;
             if (member instanceof VisualTotalMember){
                 VisualTotalMember vtMember = (VisualTotalMember)member;
                 expr = vtMember.getExpression();
             } else {
                 RolapCalculatedMember measure = (RolapCalculatedMember) member;
                 expr = measure.getFormula().getExpression();
             }

      From what I can see in the perforce repo, this problem should apply to the most recent versions too.

        Activity

        Hide
        Julian Hyde added a comment -
        Fixed in change 14198.
        Show
        Julian Hyde added a comment - Fixed in change 14198.
        Hide
        Golda David added a comment -
        Tested this issue using the Mondrian 3.3 GA build.
        Show
        Golda David added a comment - Tested this issue using the Mondrian 3.3 GA build.

          People

          • Assignee:
            Golda David
            Reporter:
            uramisten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: