TPC-Havoc Q14_v1
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT 100.00 * ( SELECT SUM(l2.l_extendedprice * ( 1 - l2.l_discount )) FROM lineitem AS l2, part AS p2 WHERE l2.l_partkey = p2.p_partkey AND p2.p_type LIKE 'PROMO%' AND l2.l_shipdate >= CAST('1995-09-01' AS DATE) AND l2.l_shipdate < CAST('1995-09-01' AS DATE) + INTERVAL '1 MONTH' ) / ( SELECT SUM(l3.l_extendedprice * ( 1 - l3.l_discount )) FROM lineitem AS l3, part AS p3 WHERE l3.l_partkey = p3.p_partkey AND l3.l_shipdate >= CAST('1995-09-01' AS DATE) AND l3.l_shipdate < CAST('1995-09-01' AS DATE) + INTERVAL '1 MONTH' ) AS promo_revenueRepresentative 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_v1'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q14.py