Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
1.1.5, 1.2.1
-
None
-
None
-
2018-21, 2019-01
Description
1. simple table created. 4 rows of data is entered.
CREATE TABLE `football_teams` (
`num` int(11) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`roster_size` int(11) DEFAULT NULL
) ENGINE=Columnstore;
insert into football_teams VALUES (1,'Green Bay',53);
insert into football_teams VALUES (2,'Chicago',53);
insert into football_teams VALUES (3,'Detroit',53);
insert into football_teams VALUES (4,'Minnesota',53);
MariaDB [test]> select * from football_teams;
--------------------------
num | name | roster_size |
--------------------------
1 | Green Bay | 53 |
2 | Chicago | 53 |
3 | Detroit | 53 |
4 | Minnesota | 53 |
--------------------------
2. A query that orders the entries by a column and limits the return. This output is as expected.
MariaDB [test]> select distinct num from football_teams order by num limit 3;
------
num |
------
1 |
2 |
3 |
------
3. subquery result set is not equivalent with result in step-2
MariaDB [test]> select * from (select distinct num from football_teams order by num limit 3) a;
------
num |
------
3 |
------