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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 5.5.2
    • ExeMgr
    • 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

              dleeyh Daniel Lee (Inactive)
              alexey.antipovsky Alexey Antipovsky (Inactive)
              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.