Skip to content

TPC-DS-OBT Q96

TPC-DS-OBT benchmark · all TPC-DS-OBT queries

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
COUNT(*)
FROM tpcds_sales_returns_obt AS obt
WHERE
(
obt.sold_time_sk = obt.sold_time_t_time_sk
AND obt.ship_hdemo_sk = obt.bill_hdemo_hd_demo_sk
AND obt.store_sk = obt.store_s_store_sk
AND obt.sold_time_t_hour = 8
AND obt.sold_time_t_minute >= 30
AND obt.bill_hdemo_hd_dep_count = 5
AND obt.store_s_store_name = 'ese'
)
AND channel = 'store'
ORDER BY
COUNT(*)
LIMIT 100

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

Source

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