1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-21 19:45:56 +03:00
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
1.3 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug3731.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
select * from nation where not n_regionkey;
select * from nation where not n_regionkey and not n_nationkey;
select n_regionkey from nation where not n_regionkey or not n_nationkey;
select n_nationkey from nation where n_nationkey > 3 and not n_regionkey;
select n_nationkey from nation where not n_regionkey and n_nationkey > 3;
select n_nationkey from nation where n_nationkey > 3 or not n_regionkey;
select n_nationkey from nation where not (n_nationkey > 2 or n_regionkey < 3);
select * from region where not r_regionkey > (select avg(n_regionkey) from nation);
select * from region where not r_regionkey in (select n_regionkey from nation);
select n_nationkey from nation where not (n_regionkey between 1 and 3) or not n_regionkey;
select n_nationkey from nation where not (n_regionkey between 1 and 3) and not n_regionkey;
select * from sub1 where c2 is null and c3 is not null;
select if (not r_regionkey, 'no', 'yes') from region;
select if (not r_regionkey < 2, 'no', 'yes') from region;
#