Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-2050

ORDER BY with OFFSET in subquery produces random and incorrect result

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.2.2
    • 1.2.3
    • ExeMgr
    • None
    • 2019-01, 2019-02

    Description

      Using the schema and data from MCOL-1829 CS 1.1.6 and 1.2.2 produce different output for the query:

      1.1.6

      MariaDB [test]> select * from (select  num from football_teams order by num limit 3 offset 2) a;
      +------+
      | num  |
      +------+
      |    4 |
      |    3 |
      +------+
      2 rows in set (0.02 sec)
      

      1.2.2

      MariaDB [test]> select * from (select num from football_teams order by num limit 3 offset 2) a;
      +------+
      | num  |
      +------+
      |    0 |
      |    3 |
      +------+
      2 rows in set (0.014 sec)
      

      Attachments

        Activity

          People

            dleeyh Daniel Lee (Inactive)
            drrtuy Roman
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.