TPC-Havoc Q5_v8
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT n_name, SUM(l_extendedprice * ( 1 - l_discount )) AS revenueFROM lineitem, nationWHERE EXISTS( SELECT 1 FROM supplier WHERE s_suppkey = l_suppkey AND s_nationkey = n_nationkey ) AND EXISTS( SELECT 1 FROM orders, customer WHERE o_orderkey = l_orderkey AND c_custkey = o_custkey AND c_nationkey = n_nationkey AND o_orderdate >= CAST('1994-01-01' AS DATE) AND o_orderdate < CAST('1994-01-01' AS DATE) + INTERVAL '1 YEAR' ) AND EXISTS( SELECT 1 FROM region WHERE r_regionkey = n_regionkey AND r_name = 'ASIA' )GROUP BY n_nameORDER BY revenue DESCRepresentative 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['5_v8'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q05.py