1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-29 03:22:01 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7097_regression_bug3524.test
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

38 lines
1.5 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug3524.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists a1;
drop table if exists 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);
select * from a1 where c1 not in (select c2 from a2 where a1.c2=a2.c2);
select * from a1 where not exists (select c2 from a2 where a1.c2=a2.c2 and a1.c1=a2.c1);
select * from a1 where not exists (select c2 from a2 where a1.c2=a2.c2);
#-- failed to compare because of bug2810 not fixed yet
#-- select * from a1 where (c1,c2) not in (select c1,c2 from a2);
#-- failed to compare because of bug2810 not fixed yet
#-- select * from a1 where (c1,c2) not in (select c1,c2 from a2 where a2.c1 = a1.c2);
select * from a1 where (c1,c2) not in (select c1,c2 from a2 where a2.c1 > a1.c2);
select * from a1 where c1 not in (select c2 from a2 where a1.c2>a2.c2);
select * from a1 where c1 not in (select 1 from a2 where a1.c1=a2.c1);
select count(*) from a1 where c1 not in (select c2 from a2 where a1.c2=a2.c2);
select count(*) from a1 where not exists (select c2 from a2 where a1.c2=a2.c2 and a1.c1=a2.c1);
drop table a1;
drop table a2;
#