TPC-Havoc Q6_v1
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT ( SELECT SUM(l2.l_extendedprice * l2.l_discount) FROM lineitem AS l2 WHERE l2.l_shipdate >= CAST('1994-01-01' AS DATE) AND l2.l_shipdate < CAST('1994-01-01' AS DATE) + INTERVAL '1 YEAR' AND l2.l_discount BETWEEN 0.06 - 0.01 AND 0.06 + 0.01 AND l2.l_quantity < 24 ) AS 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['6_v1'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q06.py