TPC-Havoc Q14_v8
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT 100.00 * SUM( CASE WHEN EXISTS( SELECT 1 FROM part AS p2 WHERE p2.p_partkey = l.l_partkey AND p2.p_type LIKE 'PROMO%' ) THEN l.l_extendedprice * ( 1 - l.l_discount ) ELSE 0 END ) / SUM(l.l_extendedprice * ( 1 - l.l_discount )) AS promo_revenueFROM lineitem AS lWHERE l.l_shipdate >= CAST('1995-09-01' AS DATE) AND l.l_shipdate < CAST('1995-09-01' AS DATE) + INTERVAL '1 MONTH' AND EXISTS( SELECT 1 FROM part AS p WHERE p.p_partkey = l.l_partkey )Representative 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['14_v8'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q14.py