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

26 lines
730 B
Plaintext

#
# Test case migrated from regression test suite:
# ./mysql/queries/working_ssb_compareLogOnly/ssb/q3.4.mod.sql
#
# Author: Susil, susil.behera@mariadb.com
#
-- source ../include/have_columnstore.inc
USE ssb1;
# Q3.4
select c_city, s_city, d_year, sum(lo_revenue)
as revenue
from dateinfo, customer,supplier, lineorder # changed order
where lo_custkey = c_custkey
and lo_suppkey = s_suppkey
and lo_orderdate = d_datekey
and (c_city='UNITED KI1'
or c_city='UNITED KI5')
and (s_city='UNITED KI1'
or s_city='UNITED KI5')
and d_yearmonth = 'Dec1997'
and lo_orderdate between 19971201 and 19971231 # added matching predicate
group by c_city, s_city, d_year
order by d_year asc, revenue desc, c_city, s_city;