Skip to content

TPC-DS-OBT Q15

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

Representative SQL

Rendered for DataFusion with default parameters.

SELECT
bill_cur_addr_ca_zip AS ca_zip,
SUM(sales_price)
FROM tpcds_sales_returns_obt
WHERE
channel = 'catalog'
AND NOT bill_cur_addr_ca_address_sk IS NULL
AND (
SUBSTRING(bill_cur_addr_ca_zip FROM 1 FOR 5) IN ('85669', '86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792')
OR bill_cur_addr_ca_state IN ('CA', 'WA', 'GA')
OR sales_price > 500
)
AND sold_date_d_qoy = 2
AND sold_date_d_year = 2000
GROUP BY
bill_cur_addr_ca_zip
ORDER BY
ca_zip
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['15'])

Source

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