TPC-DS-OBT Q55
TPC-DS-OBT benchmark · all TPC-DS-OBT queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT obt.item_i_brand_id AS brand_id, obt.item_i_brand AS brand, SUM(obt.ext_sales_price) AS ext_priceFROM 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_manager_id = 36 AND obt.sold_date_d_moy = 12 AND obt.sold_date_d_year = 2001 ) AND channel = 'store'GROUP BY obt.item_i_brand, obt.item_i_brand_idORDER BY ext_price DESC, obt.item_i_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['55'])Source
Query text: benchbox/core/tpcds_obt/queries.py