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

ArrayIndexOutOfBoundsException when using 'count distinct'

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Medium
    • 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

      Use a query with a measure based upon 'distinct count'
      and no measures, and you get an
      ArrayIndexOutOfBoundsException.

      Example query:

      select

      {[Measures].[Customer Count]}

      ON columns,

      {([Promotion Media].[All Media], [Product].[All Products])}

      ON rows
      from [Sales]
      where [Time].[1997]

      This can also happen if there are other measures, if
      those measures happen to be in the cache already.

        Attachments

          Activity

            People

            • Assignee:
              jhyde Julian Hyde
              Reporter:
              jhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: