Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
-
None
-
2020-8
Description
Build: 595
artefacts: https://cspkg.s3.amazonaws.com/index.html?prefix=develop-1.5/pull_request/595/centos7/
pipeline: https://ci.columnstore.mariadb.net/mariadb-corporation/mariadb-columnstore-engine/595/2/7
Repro:
CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) ENGINE=Columnstore;
|
INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3);
|
CREATE TABLE t2 (a INT NOT NULL, b INT NOT NULL) ENGINE=Columnstore;
|
INSERT INTO t2 VALUES (1,1),(1,2),(1,3);
|
UPDATE t1 SET b=(SELECT b FROM t2 ORDER BY b LIMIT 1);
|
 |
SELECT * FROM t1 ORDER BY a, b;
|
+---+---+
|
| a | b |
|
+---+---+
|
| 1 | 1 |
|
| 1 | 2 |
|
| 1 | 3 |
|
| 2 | 1 |
|
| 2 | 2 |
|
| 2 | 3 |
|
+---+---+
|
6 rows in set (0.024 sec)
|
Innodb:
SELECT * FROM t1 ORDER BY a, b; |
+---+---+
|
| a | b |
|
+---+---+
|
| 1 | 1 |
|
| 1 | 1 |
|
| 1 | 1 |
|
| 2 | 1 |
|
| 2 | 1 |
|
| 2 | 1 |
|
+---+---+
|
6 rows in set (0.000 sec)
|
Older build 518 results matched with Innodb and so its a regression.