1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-26 11:48:52 +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

17 lines
318 B
Plaintext

USE tpch1;
select avg(if(n_regionkey>0, n_nationkey, NULL)) from nation;
avg(if(n_regionkey>0, n_nationkey, NULL))
12.5000
select r_regionkey as r, NULL as n from region union select r_regionkey, r_name from region order by 1, 2;
r n
0 NULL
0 AFRICA
1 NULL
1 AMERICA
2 NULL
2 ASIA
3 NULL
3 EUROPE
4 NULL
4 MIDDLE EAST