You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +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:
@ -0,0 +1,52 @@
|
||||
USE tpch1;
|
||||
DROP TABLE IF EXISTS bug5319_a;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'tpch1.bug5319_a'
|
||||
CREATE TABLE `bug5319_a` (
|
||||
`col1` int(11) DEFAULT NULL,
|
||||
`col2` int(11) DEFAULT NULL
|
||||
) engine=columnstore;
|
||||
insert into bug5319_a values (1,2);
|
||||
insert into bug5319_a values (1,2);
|
||||
DROP TABLE IF EXISTS bug5319_b;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'tpch1.bug5319_b'
|
||||
CREATE TABLE `bug5319_b` (
|
||||
`col1` int(11) DEFAULT NULL,
|
||||
`col2` int(11) DEFAULT NULL
|
||||
) engine=columnstore;
|
||||
insert into bug5319_b values (1,2);
|
||||
insert into bug5319_b values (1,3);
|
||||
insert into bug5319_b values (1,4);
|
||||
DROP VIEW IF EXISTS view_bug5319_b;
|
||||
Warnings:
|
||||
Note 4092 Unknown VIEW: 'tpch1.view_bug5319_b'
|
||||
create view view_bug5319_b as select bug5319_b.col1 AS col1, bug5319_b.col2 AS col2,sum(bug5319_b.col2) AS
|
||||
kensyu_gk_total from bug5319_b group by bug5319_b.col1,bug5319_b.col2;
|
||||
Select bug5319_a.col1,bv.col2 from bug5319_a left join view_bug5319_b bv on (bug5319_a.col1 = bv.col1) order by 1, 2 ;
|
||||
col1 col2
|
||||
1 2
|
||||
1 2
|
||||
1 3
|
||||
1 3
|
||||
1 4
|
||||
1 4
|
||||
Select bug5319_a.col1,bv.col2 from bug5319_a join view_bug5319_b bv on (bug5319_a.col1 = bv.col1) order by 1, 2;
|
||||
col1 col2
|
||||
1 2
|
||||
1 2
|
||||
1 3
|
||||
1 3
|
||||
1 4
|
||||
1 4
|
||||
Select bug5319_a.col1,bv.col2 from bug5319_a right join view_bug5319_b bv on (bug5319_a.col1 = bv.col1) order by 1, 2;
|
||||
col1 col2
|
||||
1 2
|
||||
1 2
|
||||
1 3
|
||||
1 3
|
||||
1 4
|
||||
1 4
|
||||
DROP TABLE bug5319_a;
|
||||
DROP TABLE bug5319_b;
|
||||
DROP VIEW view_bug5319_b;
|
Reference in New Issue
Block a user