1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

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>
This commit is contained in:
Daniel Lee
2022-08-09 13:20:56 -05:00
committed by GitHub
parent 8b15e2f6a4
commit 4c9d6e39ac
6839 changed files with 10542409 additions and 77 deletions

View File

@ -0,0 +1,49 @@
USE tpch1;
drop table if exists bug3497a;
Warnings:
Note 1051 Unknown table 'tpch1.bug3497a'
drop table if exists bug3497b;
Warnings:
Note 1051 Unknown table 'tpch1.bug3497b'
CREATE TABLE bug3497a (col1 int, col2 varchar(10)) engine=columnstore;
INSERT INTO bug3497a VALUES(1,'trudy');
INSERT INTO bug3497a VALUES(2,'peter');
INSERT INTO bug3497a VALUES(3,'sanja');
INSERT INTO bug3497a VALUES(4,'monty');
INSERT INTO bug3497a VALUES(5,'david');
INSERT INTO bug3497a VALUES(6,'kent');
INSERT INTO bug3497a VALUES(7,'carsten');
INSERT INTO bug3497a VALUES(8,'ranger');
INSERT INTO bug3497a VALUES(10,'matt');
CREATE TABLE bug3497b (col1 int, col2 int, col3 char(1)) engine=columnstore;
INSERT INTO bug3497b VALUES (1,1,'y');
INSERT INTO bug3497b VALUES (1,2,'y');
INSERT INTO bug3497b VALUES (2,1,'n');
INSERT INTO bug3497b VALUES (3,1,'n');
INSERT INTO bug3497b VALUES (4,1,'y');
INSERT INTO bug3497b VALUES (4,2,'n');
INSERT INTO bug3497b VALUES (4,3,'n');
INSERT INTO bug3497b VALUES (6,1,'n');
INSERT INTO bug3497b VALUES (8,1,'y');
SELECT a.col1,a.col2,b.col2,b.col3 FROM bug3497b b RIGHT JOIN bug3497a a ON
a.col1=b.col1 WHERE a.col1 IN (1,5,9) AND b.col2=(SELECT MAX(col2) FROM bug3497b b2
WHERE b2.col1=b.col1) order by 1, 2;
col1 col2 col2 col3
1 trudy 2 y
SELECT distinct a.col1,a.col2,b.col2,b.col3 FROM bug3497b b RIGHT JOIN bug3497a a ON
a.col1=b.col1 WHERE b.col2=(SELECT MAX(col2) FROM bug3497b b2 WHERE b2.col1=b.col1)
order by 1, 2;
col1 col2 col2 col3
1 trudy 2 y
2 peter 1 n
3 sanja 1 n
4 monty 3 n
6 kent 1 n
8 ranger 1 y
SELECT a.col1,a.col2,b.col2,b.col3 FROM bug3497b b RIGHT JOIN bug3497a a ON
a.col1=b.col1 WHERE b.col1 IN (1,5,9) AND b.col2=(SELECT MAX(col2) FROM bug3497b b2
WHERE b2.col1=b.col1) order by 1, 2;
col1 col2 col2 col3
1 trudy 2 y
drop table if exists bug3497a;
drop table if exists bug3497b;