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

Cube getTimeDimension use when Cube has no Time dimension

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix 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

      The Cube interface has the method getTimeDimension()
      defined. A common usage pattern appearing in
      LastPeriodsFunDef, PeriodsToDateFunDef, XtdFunDef,
      OpeningClosingPeriodFunDef and ParallelPeriodFunDef
      is:

      validator.getQuery().getCube().getTimeDimension().getHierarchy().

      If the Cube does not define a Time dimension, then all of these
      result in a NullPointerException rather than some
      Mondrian usage exception.

      Granted, the above functions only make sense if a Time
      dimension is defined for the Cube, but there is no check.

        Attachments

          Activity

            People

            • Assignee:
              wgorman Will Gorman (Inactive)
              Reporter:
              remberson remberson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: