TPC-DS-OBT Q71
TPC-DS-OBT benchmark · all TPC-DS-OBT queries
Representative SQL
Rendered for DataFusion with default parameters.
SELECT item_i_brand_id AS brand_id, item_i_brand AS brand, sold_time_t_hour AS t_hour, sold_time_t_minute AS t_minute, SUM(ext_sales_price) AS ext_priceFROM tpcds_sales_returns_obtWHERE sold_date_d_moy = 12 AND sold_date_d_year = 2000 AND item_i_manager_id = 1 AND NOT sold_time_t_time_sk IS NULL AND ( sold_time_t_meal_time = 'breakfast' OR sold_time_t_meal_time = 'dinner' )GROUP BY item_i_brand, item_i_brand_id, sold_time_t_hour, sold_time_t_minuteORDER BY ext_price DESC, brand_idRepresentative 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['71'])Source
Query text: benchbox/core/tpcds_obt/queries.py