TPC-Havoc Q18_v10
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, SUM(CASE WHEN l_quantity > 0 THEN l_quantity ELSE 0 END) AS total_qtyFROM customer, orders, lineitemWHERE CASE WHEN o_orderkey IN ( SELECT l_orderkey FROM lineitem GROUP BY l_orderkey HAVING SUM(l_quantity) > 300 ) THEN 1 ELSE 0 END = 1 AND c_custkey = o_custkey AND o_orderkey = l_orderkeyGROUP BY c_name, c_custkey, o_orderkey, o_orderdate, o_totalpriceORDER BY o_totalprice DESC, o_orderdateLIMIT 100Representative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import TPCHavoc
bench = TPCHavoc(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['18_v10'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q18.py