TPC-Havoc Q13_v1
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT c_count, COUNT(*) AS custdistFROM ( SELECT c_custkey, ( SELECT COUNT(o2.o_orderkey) FROM orders AS o2 WHERE o2.o_custkey = c.c_custkey AND o2.o_comment NOT LIKE '%special%requests%' ) AS c_count FROM customer AS c) AS c_ordersGROUP BY c_countORDER BY custdist DESC, c_count 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['13_v1'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q13.py