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/mcs7564_aggregate_tpch_others.test
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02:00

60 lines
3.4 KiB
Plaintext

#
# Test case migrated from regression test suite:
# ./mysql/queries/100GB/dataValidation/aggregate_tpch.others.sql
#
# Author: Susil, susil.behera@mariadb.com
#
-- source ../include/have_columnstore.inc
USE tpch1;
select count(n_nationkey), min(n_nationkey), max(n_nationkey) , sum(n_nationkey), avg(n_nationkey) from nation;
select count(n_name), min(n_name), max(n_name) from nation;
select count(n_regionkey), min(n_regionkey), max(n_regionkey) , sum(n_regionkey), avg(n_regionkey) from nation;
select count(n_comment), min(n_comment), max(n_comment) from nation;
select count(*) from nation;
select count(r_regionkey), min(r_regionkey), max(r_regionkey) , sum(r_regionkey), avg(r_regionkey) from region;
select count(r_name), min(r_name), max(r_name) from region;
select count(r_comment), min(r_comment), max(r_comment) from region;
select count(*) from region;
select count(c_custkey), min(c_custkey), max(c_custkey) , sum(c_custkey), avg(c_custkey) from customer;
select count(c_name), min(c_name), max(c_name) from customer;
select count(c_address), min(c_address), max(c_address) from customer;
select count(c_nationkey), min(c_nationkey), max(c_nationkey) , sum(c_nationkey), avg(c_nationkey) from customer;
select count(c_phone), min(c_phone), max(c_phone) from customer;
select count(c_acctbal), min(c_acctbal), max(c_acctbal) , sum(c_acctbal), avg(c_acctbal) from customer;
select count(c_mktsegment), min(c_mktsegment), max(c_mktsegment) from customer;
select count(c_comment), min(c_comment), max(c_comment) from customer;
select count(*) from customer;
select count(s_suppkey), min(s_suppkey), max(s_suppkey) , sum(s_suppkey), avg(s_suppkey) from supplier;
select count(s_name), min(s_name), max(s_name) from supplier;
select count(s_address), min(s_address), max(s_address) from supplier;
select count(s_nationkey), min(s_nationkey), max(s_nationkey) , sum(s_nationkey), avg(s_nationkey) from supplier;
select count(s_phone), min(s_phone), max(s_phone) from supplier;
select count(s_acctbal), min(s_acctbal), max(s_acctbal) from supplier;
select count(s_comment), min(s_comment), max(s_comment) from supplier;
select count(*) from supplier;
select count(ps_partkey), min(ps_partkey), max(ps_partkey) , sum(ps_partkey), avg(ps_partkey) from partsupp;
select count(ps_suppkey), min(ps_suppkey), max(ps_suppkey) , sum(ps_suppkey), avg(ps_suppkey) from partsupp;
select count(ps_availqty), min(ps_availqty), max(ps_availqty) , sum(ps_availqty), avg(ps_availqty) from partsupp;
select count(ps_supplycost), min(ps_supplycost), max(ps_supplycost) , sum(ps_supplycost), avg(ps_supplycost) from partsupp;
select count(ps_comment), min(ps_comment), max(ps_comment) from partsupp;
select count(*) from partsupp;
select count(p_partkey), min(p_partkey), max(p_partkey) , sum(p_partkey), avg(p_partkey) from part;
select count(p_name), min(p_name), max(p_name) from part;
select count(p_mfgr), min(p_mfgr), max(p_mfgr) from part;
select count(p_brand), min(p_brand), max(p_brand) from part;
select count(p_type), min(p_type), max(p_type) from part;
select count(p_size), min(p_size), max(p_size) , sum(p_size), avg(p_size) from part;
select count(p_container), min(p_container), max(p_container) from part;
select count(p_retailprice), min(p_retailprice), max(p_retailprice) , sum(p_retailprice), avg(p_retailprice) from part;
select count(p_comment), min(p_comment), max(p_comment) from part;
select count(*) from part;