TPC-Havoc Q18_v6
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT order_data.c_name, order_data.c_custkey, order_data.o_orderkey, order_data.o_orderdate, order_data.o_totalprice, order_data.total_qtyFROM ( SELECT c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice, SUM(l.l_quantity) AS total_qty FROM customer AS c, orders AS o, lineitem AS l WHERE c.c_custkey = o.o_custkey AND o.o_orderkey = l.l_orderkey GROUP BY c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice) AS order_dataWHERE order_data.total_qty > 300ORDER BY order_data.o_totalprice DESC, order_data.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_v6'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q18.py