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

ORDER BY does not work with aggregate functions on XWQL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 6.0-rc-1
    • 5.1
    • Query
    • Unknown
    • N/A
    • N/A

    Description

      Like XWIKI-10189,
      this query does not work:

      SELECT obj.person, SUM(obj.money) FROM Document doc, doc.object(Test.TestClass) obj GROUP BY obj.person ORDER BY SUM(obj.money) DESC
      

      Same for: AVG, MAX, MIN.

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: