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

25 lines
723 B
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug3067.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE ssb1;
#
select * from (
select F, count(*) from (select count(*) F from lineorder where
lo_orderdate between 19940101 and 19940110 and lo_quantity <= 20
group
by lo_quantity ) a group by F union all
select F, count(*) from (select count(*) F from lineorder where
lo_orderdate between 19940101 and 19940110 and lo_quantity between 21 and 40
group
by lo_quantity ) a group by F) a
order by 1, 2;
#