You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-25 20:23:16 +03:00
16 lines
473 B
Plaintext
16 lines
473 B
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: bug3381.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
select avg(if(n_regionkey>0, n_nationkey, NULL)) from nation;
|
|
select r_regionkey as r, NULL as n from region union select r_regionkey, r_name from region order by 1, 2;
|
|
|
|
#
|
|
|