1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-05 15:41:14 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/r/mcs7173_regression_bug5267.result
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

110 lines
950 B
Plaintext

USE tpch1;
select n_nationkey, case when n_nationkey xor n_regionkey then 1 else 0 end case_xor from nation;
n_nationkey case_xor
0 0
1 0
2 0
3 0
4 0
5 1
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 1
15 1
16 1
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
select n_nationkey, if(n_nationkey xor n_regionkey, 1, 0) from nation;
n_nationkey if(n_nationkey xor n_regionkey, 1, 0)
0 0
1 0
2 0
3 0
4 0
5 1
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 1
15 1
16 1
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
select n_nationkey, if(n_nationkey and n_regionkey, 1, 0) from nation;
n_nationkey if(n_nationkey and n_regionkey, 1, 0)
0 0
1 1
2 1
3 1
4 1
5 0
6 1
7 1
8 1
9 1
10 1
11 1
12 1
13 1
14 0
15 0
16 0
17 1
18 1
19 1
20 1
21 1
22 1
23 1
24 1
select n_nationkey, case when n_nationkey or n_regionkey then 1 else 0 end case_xor from nation;
n_nationkey case_xor
0 0
1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
11 1
12 1
13 1
14 1
15 1
16 1
17 1
18 1
19 1
20 1
21 1
22 1
23 1
24 1