TPC-DS-OBT Q3
TPC-DS-OBT benchmark · all TPC-DS-OBT queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT obt.sold_date_d_year, obt.item_i_brand_id AS brand_id, obt.item_i_brand AS brand, SUM(ext_sales_price) AS sum_aggFROM tpcds_sales_returns_obt AS obtWHERE ( obt.sold_date_d_date_sk = obt.sold_date_sk AND obt.item_sk = obt.item_i_item_sk AND obt.item_i_manufact_id = 436 AND obt.sold_date_d_moy = 12 ) AND channel = 'store'GROUP BY obt.sold_date_d_year, obt.item_i_brand, obt.item_i_brand_idORDER BY obt.sold_date_d_year, sum_agg DESC, brand_idLIMIT 100Representative 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 factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['3'])Source
Query text: benchbox/core/tpcds_obt/queries.py