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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: ExeMgr
    • Labels:
      None
    • Sprint:
      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

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            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.