[MCOL-1449] Internal sorting orientation regression Created: 2018-05-31  Updated: 2018-05-31  Resolved: 2018-05-31

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

Type: Bug Priority: Minor
Reporter: Roman Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: relnote

Sprint: 2018-11

 Description   

Changes made for MCOL-1052[1] reverts the default orientation of a set internally sorted by CS.
select d_yearmonthnum * 100 + 1 d_start , count from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1;

####before the change
MariaDB [ssb]> select d_yearmonthnum * 100 + 1 d_start , count from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1;
------------------+

d_start count

------------------+

19980301 23

------------------+
1 row in set (0.07 sec)

after the change
MariaDB [ssb]> select d_yearmonthnum * 100 + 1 d_start , count from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1;
------------------+

d_start count

------------------+

19980201 20

------------------+
1 row in set (0.01 sec)

1. https://github.com/mariadb-corporation/mariadb-columnstore-engine/commit/5d48ddb158d33f2ff903a7448315a0c12bc71c2f



 Comments   
Comment by Roman [ 2018-05-31 ]

Please review.

Comment by Daniel Lee (Inactive) [ 2018-05-31 ]

Build verified: 1.2.0-1 source

The following is actually the expected result. Verified that it matched with the MariaDB Server 10.2.14.

MariaDB [ssb]> select d_yearmonthnum * 100 + 1 d_start , count from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1;
------------------+
d_start count
------------------+
19980301 23

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