TPC-Havoc Q10_v3
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT c.c_custkey, c.c_name, SUM(l.l_extendedprice * ( 1 - l.l_discount )) AS revenue, c.c_acctbal, n.n_name, c.c_address, c.c_phone, c.c_commentFROM customer AS cINNER JOIN orders AS o ON c.c_custkey = o.o_custkeyINNER JOIN lineitem AS l ON o.o_orderkey = l.l_orderkeyINNER JOIN nation AS n ON c.c_nationkey = n.n_nationkeyWHERE o.o_orderdate >= CAST('1993-10-01' AS DATE) AND o.o_orderdate < CAST('1993-10-01' AS DATE) + INTERVAL '3 MONTH' AND l.l_returnflag = 'R'GROUP BY c.c_custkey, c.c_name, c.c_acctbal, c.c_phone, n.n_name, c.c_address, c.c_commentORDER 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['10_v3'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q10.py