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

"SELECT DISTINCT col FROM table LIMIT O,N" ignores offset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.2
    • Component/s: ExeMgr
    • Labels:
      None

      Description

      DROP TABLE IF EXISTS a;
      CREATE TABLE a (a INT) ENGINE=Columnstore;
      INSERT INTO a VALUES (1), (1), (2), (3);
      SELECT DISTINCT a FROM a LIMIT 2;
      /*
      +------+
      | a    |
      +------+
      |    1 |
      |    2 |
      +------+
      */
      SELECT DISTINCT a FROM a LIMIT 2,2;
      /*
      +------+
      | a    |
      +------+
      |    1 |
      |    2 |
      +------+
      Expected:
      +------+
      | a    |
      +------+
      |    3 |
      +------+
      */
      SELECT DISTINCT a FROM a ORDER BY 1 LIMIT 2,2;
      /*
      +------+
      | a    |
      +------+
      |    3 |
      +------+
      */
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dleeyh Daniel Lee
              Reporter:
              alexey.antipovsky Alexey Antipovsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration