Skip to content

TPC-DI V3

TPC-DI benchmark · all TPC-DI queries

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
Status,
Type,
COUNT(*) AS trade_count,
SUM(Quantity) AS total_quantity,
AVG(TradePrice) AS avg_trade_price,
SUM(Fee + Commission + Tax) AS total_fees
FROM FactTrade
GROUP BY
Status,
Type
ORDER BY
Status,
Type

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

Source

Query text: benchbox/core/tpcdi/queries.py