You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-29 03:22:01 +03:00
* 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>
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
USE tpch1;
|
|
drop table if exists a1;
|
|
Warnings:
|
|
Note 1051 Unknown table 'tpch1.a1'
|
|
drop table if exists a2;
|
|
Warnings:
|
|
Note 1051 Unknown table 'tpch1.a2'
|
|
create table a1 (c1 int, c2 int)engine=columnstore;
|
|
create table a2 (c1 int, c2 int)engine=columnstore;
|
|
insert into a1 values (1, 1),(2,2),(3,null),(null,3),(null,null);
|
|
insert into a2 values (1, 1),(2, null),(null, 2),(3, 3),(null, null);
|
|
select * from a1 where c1 not in (select c2 from a2);
|
|
c1 c2
|
|
select * from a1 where c1 not in (select c2 from a2 where a1.c2=a2.c2);
|
|
c1 c2
|
|
3 NULL
|
|
NULL NULL
|
|
select * from a1 where not exists (select c2 from a2 where a1.c2=a2.c2 and a1.c1=a2.c1);
|
|
c1 c2
|
|
2 2
|
|
3 NULL
|
|
NULL 3
|
|
NULL NULL
|
|
select * from a1 where not exists (select c2 from a2 where a1.c2=a2.c2);
|
|
c1 c2
|
|
3 NULL
|
|
NULL NULL
|
|
select * from a1 where (c1,c2) not in (select c1,c2 from a2 where a2.c1 > a1.c2);
|
|
c1 c2
|
|
1 1
|
|
2 2
|
|
3 NULL
|
|
NULL 3
|
|
NULL NULL
|
|
select * from a1 where c1 not in (select c2 from a2 where a1.c2>a2.c2);
|
|
c1 c2
|
|
1 1
|
|
2 2
|
|
3 NULL
|
|
NULL NULL
|
|
select * from a1 where c1 not in (select 1 from a2 where a1.c1=a2.c1);
|
|
c1 c2
|
|
2 2
|
|
3 NULL
|
|
NULL 3
|
|
NULL NULL
|
|
select count(*) from a1 where c1 not in (select c2 from a2 where a1.c2=a2.c2);
|
|
count(*)
|
|
2
|
|
select count(*) from a1 where not exists (select c2 from a2 where a1.c2=a2.c2 and a1.c1=a2.c1);
|
|
count(*)
|
|
4
|
|
drop table a1;
|
|
drop table a2;
|