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

14 lines
830 B
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug2907.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE ssb1;
#
select lo_shipmode, c_region, sum(lo_extendedprice), count(*) from lineorder join customer on lo_custkey = c_custkey where lo_orderdate between (select d_start from ( select d_yearmonthnum * 100 + 1 d_start , count(*) from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1) alias1) and (select d_end from ( select d_yearmonthnum * 100 + 31 d_end , count(*) from dateinfo where d_weekdayfl = 1 and d_year = 1998 group by 1 order by 2 desc limit 1) alias2) group by 1,2 order by 1,2;
#