1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-24 08:41:09 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/r/mcs7215_regression_MCOL-3267.result
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

28 lines
847 B
Plaintext

USE tpch1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 'tpch1.t1'
DROP TABLE IF EXISTS t2;
Warnings:
Note 1051 Unknown table 'tpch1.t2'
CREATE TABLE t1 (a bigint, b bigint)engine=columnstore;
CREATE TABLE t2 (a bigint, b bigint)engine=columnstore;
INSERT INTO t1 VALUES (5,5),(4,4),(3,3);
INSERT INTO t1 VALUES (5,5),(4,4),(3,3);
SELECT * FROM ((SELECT a, b FROM t1 ORDER BY b LIMIT 2) UNION ALL (SELECT a, b FROM t2 ORDER BY b LIMIT 2)) as sq3 ORDER BY 1,2;
a b
3 3
3 3
SELECT * FROM (select * FROM (SELECT a, b FROM t1 ORDER BY b LIMIT 2) sub1 UNION ALL SELECT * FROM (SELECT a, b FROM t2 ORDER BY b LIMIT 2) sub2 ) as sq3 ORDER BY 1,2;
a b
3 3
3 3
SELECT * FROM (select * FROM (SELECT a, b FROM t1 ORDER BY b) sub1 UNION ALL SELECT * FROM (SELECT a, b FROM t2 ORDER BY b) sub2 ) as sq3 ORDER BY 1,2;
a b
3 3
3 3
4 4
4 4
5 5
5 5