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

Change default internal sorting direction in CS

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • ExeMgr
    • None

    Description

      Internal CS sorting code outputs its result in opposite direction contrasting the server.

      MariaDB [tpch1c]> use cs;
      Database changed
      MariaDB [cs]> use test
      Database changed
      MariaDB [test]> create table cs1(i int) engine=columnstore;
      insQuery OK, 0 rows affected (2.71 sec)
       
      create table in1(i int) engine=innodb;
       
      MariaDB [test]> insert into cs1 values (4),(15);
      Query OK, 2 rows affected (0.59 sec)
      Records: 2  Duplicates: 0  Warnings: 0
       
      insert into in1 values (4),(15);
       
      MariaDB [test]> select * from cs1 order by i desc; -- This one uses server's filesort
      +------+
      | i    |
      +------+
      |   15 |
      |    4 |
      +------+
      2 rows in set (0.13 sec)
       
      MariaDB [test]> select * from (select * from cs1 order by i desc) t1; -- This one uses internal CS sorting
      +------+
      | i    |
      +------+
      |    4 |
      |   15 |
      +------+
      2 rows in set (0.02 sec)
      

      Both outputs must be identical.

      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.