Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17696

percentile_cont and percentile_disc don't work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3.9
    • N/A
    • Server
    • None

    Description

      https://mariadb.com/kb/en/library/percentile_disc/ & https://mariadb.com/kb/en/library/percentile_cont/ both state that these functions are:

      "is an ordered set aggregate function which can also be used as a window function"

      ... however it doesn't appear to be possible to use them as ordered set aggregate functions. If one attempts a query "percentile_cont(fraction) WITHIN GROUP (ORDER BY sort_expression)" without an OVER clause then a "You have an error in your SQL syntax" is returned.

      I suspect this might get classified as a documentation error (ie they're only supported as window functions) - however MDEV-12985 did clearly consider both use-cases.

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            jakdaw Chris Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.