Skip to content

TPC-Havoc Q6_v3

TPC-Havoc benchmark · all TPC-Havoc queries

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
SUM(l1.l_extendedprice * l1.l_discount) AS revenue
FROM lineitem AS l1, (
SELECT
1 AS dummy
) AS dummy_table
WHERE
l1.l_shipdate >= CAST('1994-01-01' AS DATE)
AND l1.l_shipdate < CAST('1994-01-01' AS DATE) + INTERVAL '1 YEAR'
AND l1.l_discount BETWEEN 0.06 - 0.01 AND 0.06 + 0.01
AND l1.l_quantity < 24

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['6_v3'])

Source

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