[MCOL-1446] Change default internal sorting direction in CS Created: 2018-05-30  Updated: 2019-03-01  Resolved: 2019-03-01

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr
Affects Version/s: None
Fix Version/s: 1.2.0

Type: New Feature Priority: Minor
Reporter: Roman Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Epic Link: ColumnStore Compatibility Improvements
Sprint: 2018-11, 2018-12, 2018-13, 2018-14, 2018-15, 2018-16, 2018-17, 2018-18, 2018-19, 2018-20, 2018-21, 2019-01, 2019-02

 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.



 Comments   
Comment by Daniel Lee (Inactive) [ 2019-03-01 ]

Build verified: 1.2.3-1 nightly

server commit:
61f32f2
engine commit:
e849af0

Generated at Thu Feb 08 02:28:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.