You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started work on making Ballista capable of running the TPCH benchmark and plan on using the latest version of the sqlparser crate.
It would be nice to add the TPCH queries [1] to the unit/integration tests to make sure they can all be parsed correctly. If we need to pick a dialect to test with, I would suggest Hive.
selectsum(l_extendedprice * l_discount) as revenue
from
lineitem
where
l_shipdate >=date'1994-01-01'and l_shipdate <date'1994-01-01'+ interval '1' year
and l_discount between .06-0.01and .06+0.01and l_quantity <24;
select
cntrycode,
count(*) as numcust,
sum(c_acctbal) as totacctbal
from
(
selectsubstring(c_phone from1 for 2) as cntrycode,
c_acctbal
from
customer
wheresubstring(c_phone from1 for 2) in
('13', '31', '23', '29', '30', '18', '17')
and c_acctbal > (
selectavg(c_acctbal)
from
customer
where
c_acctbal >0.00andsubstring(c_phone from1 for 2) in
('13', '31', '23', '29', '30', '18', '17')
)
and not exists (
select*from
orders
where
o_custkey = c_custkey
)
) as custsale
group by
cntrycode
order by
cntrycode;
I've started work on making Ballista capable of running the TPCH benchmark and plan on using the latest version of the sqlparser crate.
It would be nice to add the TPCH queries [1] to the unit/integration tests to make sure they can all be parsed correctly. If we need to pick a dialect to test with, I would suggest Hive.
[1] https://github.com/andygrove/tpch-dbgen/tree/master/queries
The text was updated successfully, but these errors were encountered: