Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2062

Aggregating an integer field using sum returns long

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3 RC1
    • Component/s: Statistics
    • Labels:
      None
    • Environment:
      Any
    • keywords:
      statistics, stats, long, integer, aggregation, sum
    • Similar issues:

      Description

      Most of the statistics related queries fail because the result of aggregating an integer field is a long value, and not an integer as expected. This explains "java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer".

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: