TPC-Havoc Q3_v3
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT l_orderkey, SUM(l_extendedprice * ( 1 - l_discount )) AS revenue, o_orderdate, o_shippriorityFROM customer AS cINNER JOIN orders AS o ON c.c_custkey = o.o_custkeyINNER JOIN lineitem AS l ON o.o_orderkey = l.l_orderkeyWHERE c.c_mktsegment = 'BUILDING' AND o.o_orderdate < CAST('1995-03-15' AS DATE) AND l.l_shipdate > CAST('1995-03-15' AS DATE)GROUP BY l_orderkey, o_orderdate, o_shippriorityORDER BY revenue DESC, o_orderdateRepresentative 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['3_v3'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q03.py