TPC-DI V1
TPC-DI benchmark · all TPC-DI queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT COUNT(*) AS total_customers, COUNT(DISTINCT CustomerID) AS unique_customers, SUM(CASE WHEN IsCurrent IS TRUE THEN 1 ELSE 0 END) AS current_customersFROM DimCustomerRepresentative 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 TPCDI
bench = TPCDI(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['V1'])Source
Query text: benchbox/core/tpcdi/queries.py