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

Cube getTimeDimension use when Cube has no Time dimension

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

        Activity

        Hide
        Mondrian Importer User added a comment -
        {remberson}, 06/07/2007: IP, Artifact Created: 209.172.110.66 |
        {jhyde}, 08/09/2007: IP, Comment Added: 66.92.12.96 |
        {jhyde}, 08/09/2007: priority, 5 |
        {willgorman}, 01/11/2008: artifact_group_id, 100 |
        {willgorman}, 01/11/2008: assigned_to, 100 |
        {willgorman}, 02/04/2008: IP, Comment Added: 64.132.248.34 |
        {willgorman}, 02/04/2008: status_id, 1 |
        {willgorman}, 02/04/2008: resolution_id, 100 |
        {willgorman}, 02/04/2008: close_date, 0
        Show
        Mondrian Importer User added a comment - {remberson}, 06/07/2007: IP, Artifact Created: 209.172.110.66 | {jhyde}, 08/09/2007: IP, Comment Added: 66.92.12.96 | {jhyde}, 08/09/2007: priority, 5 | {willgorman}, 01/11/2008: artifact_group_id, 100 | {willgorman}, 01/11/2008: assigned_to, 100 | {willgorman}, 02/04/2008: IP, Comment Added: 64.132.248.34 | {willgorman}, 02/04/2008: status_id, 1 | {willgorman}, 02/04/2008: resolution_id, 100 | {willgorman}, 02/04/2008: close_date, 0
        Hide
        Mondrian Importer User added a comment -
        {jhyde}, 08/09/2007: Logged In: YES
        user_id=312935
        Originator: NO

        Not high priority; fix would be a few lines and a testcase in SchemaTest. Hence the tag EASYFIX.
        Show
        Mondrian Importer User added a comment - {jhyde}, 08/09/2007: Logged In: YES user_id=312935 Originator: NO Not high priority; fix would be a few lines and a testcase in SchemaTest. Hence the tag EASYFIX.
        Hide
        Mondrian Importer User added a comment -
        {willgorman}, 02/04/2008: Logged In: YES
        user_id=160824
        Originator: NO

        Fixed in change # 10515
        Show
        Mondrian Importer User added a comment - {willgorman}, 02/04/2008: Logged In: YES user_id=160824 Originator: NO Fixed in change # 10515

          People

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

            Dates

            • Created:
              Updated:
              Resolved: