TPC-Havoc Q13_v6
TPC-Havoc benchmark · all TPC-Havoc queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT order_count, customer_distributionFROM ( SELECT c_count AS order_count, COUNT(*) AS customer_distribution FROM ( SELECT customer_orders.c_custkey, customer_orders.c_count FROM ( SELECT c_custkey, COUNT(o_orderkey) AS c_count FROM customer LEFT OUTER JOIN orders ON c_custkey = o_custkey AND o_comment NOT LIKE '%special%requests%' GROUP BY c_custkey ) AS customer_orders ) AS customer_summary GROUP BY c_count) AS distribution_summaryORDER BY customer_distribution DESC, order_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_v6'])Source
Query text: benchbox/core/tpchavoc/variant_sets/q13.py