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

Wrong result when query with group by x order by y limit n

    XMLWordPrintable

Details

    Description

      Wrong result when query with group by x order by y limit n
      query: select a, count from t group by a order by 2 desc limit n
      before distribution: select a, count from t group by a order by 2 desc limit n
      now distribution: select a, count from t group by a order by 2 desc

      Attachments

        Activity

          People

            Kentoku Kentoku Shiba (Inactive)
            willhan willhan
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.