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

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

          willhan
          I just fixed this. Please check test results of the following commit.
          49a3c89e

          Kentoku Kentoku Shiba (Inactive) added a comment - willhan I just fixed this. Please check test results of the following commit. 49a3c89e
          willhan willhan added a comment -

          It' ok

          willhan willhan added a comment - It' ok

          merging

          Kentoku Kentoku Shiba (Inactive) added a comment - merging

          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.