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

Aggregating an integer field using sum returns long

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.3 RC1
    • None
    • Statistics
    • None
    • Any
    • statistics, stats, long, integer, aggregation, sum

    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

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

            Dates

              Created:
              Updated:
              Resolved: