Skip to content

TPC-Havoc Q11_v6

TPC-Havoc benchmark · all TPC-Havoc queries

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
partkey,
total_value
FROM (
SELECT
ps_partkey AS partkey,
SUM(ps_supplycost * ps_availqty) AS total_value
FROM partsupp, supplier, nation
WHERE
ps_suppkey = s_suppkey AND s_nationkey = n_nationkey AND n_name = 'GERMANY'
GROUP BY
ps_partkey
HAVING
SUM(ps_supplycost * ps_availqty) > (
SELECT
SUM(ps_supplycost * ps_availqty) * 0.0100000000
FROM partsupp, supplier, nation
WHERE
ps_suppkey = s_suppkey AND s_nationkey = n_nationkey AND n_name = 'GERMANY'
)
) AS inventory_summary
ORDER BY
total_value DESC

Representative 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 factor
queries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQL
print(queries['11_v6'])

Source

Query text: benchbox/core/tpchavoc/variant_sets/q11.py