1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-4674 Fix ColumnStore to run MTR tests in a build directory

This commit is contained in:
Alexander Barkov
2021-04-13 11:25:25 +04:00
parent d8b473329f
commit 75e3bbc31e
1874 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
USE ssb1;
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;
c_city s_city d_year revenue
UNITED KI5 UNITED KI1 1997 3432377.00
UNITED KI1 UNITED KI1 1997 2289319.00
UNITED KI1 UNITED KI5 1997 1266583.00