1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-21 19:45:56 +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

15 lines
1.4 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug2922.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE ssb1;
#
select c_name, d_month, sum(lo_extendedprice), min(lo_orderdate), max(lo_orderdate) from lineorder join customer on lo_custkey = c_custkey join dateinfo on lo_orderdate = d_datekey where lo_orderdate between 19970101 and 19971230 and lo_custkey in ( select lo_custkey from (select lo_custkey, sum(lo_extendedprice) from lineorder where lo_orderdate between 19971201 and 19971230 group by 1 order by 2 desc limit 10 ) a ) group by 1,2 order by 1,2;
select count(*) from lineorder where lo_orderdate between 19970101 and 19970105 and lo_custkey not in ( select lo_custkey from (select lo_custkey from lineorder where lo_orderdate between 19971201 and 19971201 ) a );
#