1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-25 20:23:16 +03:00
Files
mariadb-columnstore-engine/mtr/csinternal/devregression/t/mcs7116_regression_bug3731.test
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02: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;
#