TPC-DS-OBT Benchmark
CLI name:
tpcds_obt- usebenchbox run --benchmark tpcds_obtQuery templates: every TPC-DS-OBT query
Overview
The TPC-DS-OBT (One Big Table) benchmark adapts the standard TPC-DS benchmark to run against a single denormalized table instead of the traditional 25-table normalized schema. This experimental benchmark tests how databases handle wide tables with hundreds of columns, a pattern increasingly common in modern data warehouses and lakehouse architectures.
The benchmark is ideal for evaluating column pruning efficiency, wide table scan performance, and storage format effectiveness (Parquet, Delta Lake, Iceberg) on denormalized schemas.
Key Features
- Single wide table - All TPC-DS data flattened into one denormalized table
- 90 of 99 queries - TPC-DS queries rewritten for flat schema (9 queries are not OBT-convertible; see below)
- No joins required - Tests pure scan and aggregation performance
- Column pruning focus - Evaluates optimizer column projection efficiency
- Modern lakehouse pattern - Simulates real-world denormalized data models
- Storage format comparison - Ideal for Parquet vs Delta vs Iceberg testing
Use Cases
When to Use TPC-DS-OBT
- Lakehouse performance testing - Evaluate denormalized table performance
- Column pruning benchmarks - Test how efficiently engines skip unused columns
- Wide table handling - Stress test databases with a 715-column table
- Storage format comparison - Compare Parquet, Delta Lake, Iceberg on wide tables
- Scan-heavy workloads - Benchmark pure analytical scan performance without join overhead
When to Use Standard TPC-DS
- Join performance testing - Evaluating multi-table join strategies
- Normalized schema workloads - Traditional data warehouse patterns
- TPC compliance - Official TPC-DS compliance requires normalized schema
Data Model
One Big Table Schema
The OBT schema denormalizes all 25 TPC-DS tables into a single wide table:
| Aspect | Value |
|---|---|
| Tables | 1 (denormalized) |
| Columns | 715 at dimension_mode=full |
| Source Tables | All 25 TPC-DS tables flattened |
| Primary Grain | store_sales fact table |
Column Groups
The denormalized table contains columns from all TPC-DS dimensions. The column lineage page lists every fact source and dimension role:
| Source Table | Columns Added | Prefix |
|---|---|---|
| store_sales | ~23 | ss_ |
| customer | ~18 | c_ |
| customer_address | ~13 | ca_ |
| customer_demographics | ~9 | cd_ |
| date_dim | ~28 | d_ |
| item | ~22 | i_ |
| store | ~29 | s_ |
| promotion | ~19 | p_ |
| household_demographics | ~5 | hd_ |
| time_dim | ~10 | t_ |
| … | … | … |
Scale Factors
Measured on DuckDB. The size is the Parquet output on disk.
| Scale Factor | Rows | Size (Parquet) |
|---|---|---|
| 0.01 | 50,335 | 14.5 MB |
| 0.1 | 503,753 | 117 MB |
| 1 | 5,041,336 | 1.38 GB |
| 10 | 50,399,818 | 18.2 GB |
The SF1 calibrated sizes page reports 2,406,484,046 bytes for tpcds_obt at SF 1.
That figure is an uncompressed total that includes the staged TPC-DS source, so it is larger than the Parquet
size above.
Quick Start
benchbox run --platform duckdb --benchmark tpcds_obt --scale 1.0
benchbox run --platform duckdb --benchmark tpcds_obt --scale 1.0 --queries Q1,Q3,Q7
benchbox run --platform duckdb --benchmark tpcds --scale 1.0benchbox run --platform duckdb --benchmark tpcds_obt --scale 1.0The first command runs TPC-DS-OBT on DuckDB and the second runs only queries Q1, Q3 and Q7. The last two commands run standard TPC-DS and then TPC-DS-OBT at the same scale for comparison.
CLI Options (--benchmark-option)
Configure TPC-DS-OBT via --benchmark-option KEY=VALUE:
| Option | Default | Description |
|---|---|---|
dimension_mode | full | OBT dimension mode: full, minimal |
channels | all | Sales channels: store, web, catalog (comma-separated) |
output_format | parquet | Output format: dat, parquet |
tpcds_source_dir | - | Directory containing TPC-DS source data |
force_regenerate | - | Force data regeneration (true/false) |
Accepts hyphenated aliases (e.g. dimension-mode, output-format, tpcds-source-dir).
benchbox run --platform duckdb --benchmark tpcds_obt --scale 1 \ --benchmark-option dimension_mode=minimal \ --benchmark-option channels=store
benchbox run --platform duckdb --benchmark tpcds_obt --scale 1 \ --benchmark-option output_format=datThe first command uses minimal dimensions and the store channel only. Parquet is the default output format, so it needs no flag. The second forces the legacy pipe-delimited .dat output, which is rarely needed.
Storage format
Parquet is the default because the OBT is a very wide table (715 columns at dimension_mode=full)
with high null density - store rows carry NULL for all web_site_*, web_page_*, and
call_center_* columns, and so on per channel. Columnar storage with null suppression
reduces the SF1 artifact by an order of magnitude vs the 11 GB pipe-delimited .dat,
and makes the DataFrame platforms (DataFusion, Polars, Pandas) viable for SF1+.
Use --benchmark-option output_format=dat when you need to reproduce results from runs
that pre-date this default change, or when feeding a tool that can only read pipe-delimited
text. Existing .dat files on disk are not deleted automatically; BenchBox will regenerate
as parquet and log the path of the stale .dat so you can reclaim disk space manually.
Query Adaptations
TPC-DS-OBT provides 90 of the standard 99 TPC-DS queries rewritten to run against the flat table and return the
TPC-DS result. 9 queries are excluded because they cannot be expressed against a single denormalized fact; the
catalog records each one with its reason, and requesting one raises QuerySkippedError:
| Category | Queries | Reason for exclusion |
|---|---|---|
| Inventory fact | Q21, Q22, Q37, Q39, Q72, Q82 | Use the inventory fact table, a separate fact domain not included in the OBT denormalization |
| Dimension rows with no sales | Q8, Q54, Q84 | Need customers, zip codes or stores that have no sales rows, and the OBT only carries dimension rows reachable from a sale line |
The OBT queries are a hand-owned catalog, benchbox/core/tpcds_obt/catalog/queries.yaml. Each entry records the
SHA-256 of the TPC-DS template it derives from, and tests fail when a template or its parameters change.
Example: Query 1
Standard TPC-DS Q1 (with joins):
SELECT c_customer_id, c_first_name, c_last_name, ...FROM customer, store_sales, date_dim, storeWHERE c_customer_sk = ss_customer_sk AND ss_sold_date_sk = d_date_sk AND ss_store_sk = s_store_sk ...TPC-DS-OBT Q1 (flat table):
SELECT c_customer_id, c_first_name, c_last_name, ...FROM tpcds_obtWHERE d_year = 2000 AND s_state = 'TN' ...Result Equivalence
tests/integration/test_tpcds_obt_equivalence.py runs every served OBT query and its TPC-DS counterpart on DuckDB over the same generated data, with identical dsqgen parameters, and compares the result multisets (integers and decimals exactly, floating-point values within a relative tolerance of 1e-9, NULL-aware, row order ignored). Where the default parameter draw makes the TPC-DS query return no rows, the test searches seeds 1 to 12 for one that does. Queries whose results differ, and queries with no rows to compare at any seed, are recorded per scale factor with a cause class in the test module. A listed query that starts matching fails the test, as does an unlisted query that diverges, so the lists can only shrink on purpose.
Run it with make tpcds-obt-equivalence (SF0.01 by default) or make tpcds-obt-equivalence TPCDS_OBT_EQUIVALENCE_SF=1. The PR tier runs SF0.01 and the nightly t3:tpcds-obt domain runs SF1.
DataFrame Query IDs
The SQL queries are numbered like TPC-DS and return the TPC-DS result. The 17 DataFrame queries are OBT-native
aggregations that match no TPC-DS query, so their IDs are their names: obt_row_count,
obt_channel_distribution, obt_returns_summary, obt_channel_revenue, obt_top_items_by_quantity,
obt_avg_ticket_by_channel, obt_discounted_sales, obt_profit_by_channel,
obt_sales_by_channel_return_flag, obt_high_value_sales, obt_item_channel_quantity, obt_ticket_extremes,
obt_distinct_items, obt_bulk_sales, obt_coupon_sales, obt_store_summary and obt_overall_totals.
Select them on a DataFrame platform with --queries obt_row_count,obt_channel_revenue.
Performance Considerations
Advantages of OBT
- No join overhead - Eliminates multi-table join costs
- Simplified query plans - Single table scan with filters
- Columnar format efficiency - Modern formats excel at column pruning
- Predictable performance - Less optimizer variability
Challenges of OBT
- Storage overhead - Denormalization increases data redundancy
- Column count - Wide tables stress metadata handling
- Update complexity - Changes require full table rewrites
- Memory pressure - Wide rows can stress memory buffers
Platform Support
| Platform | Status | Notes |
|---|---|---|
| DuckDB | ✅ Full | Excellent wide table handling |
| ClickHouse | ✅ Full | Strong columnar performance |
| Databricks | ✅ Full | Native Delta Lake support |
| Snowflake | ✅ Full | Automatic micro-partitioning |
| BigQuery | ✅ Full | Columnar storage optimized |
| Polars | ✅ Full | Efficient Arrow-based scans |
| PostgreSQL | ⚠️ Limited | Row-store less efficient for wide tables |
Comparison with Related Benchmarks
| Benchmark | Schema | Tables | Focus |
|---|---|---|---|
| TPC-DS | Normalized | 25 | Join performance, complex queries |
| TPC-DS-OBT | Denormalized | 1 | Wide table scans, column pruning |
| TPC-H | Normalized | 8 | Simpler decision support |
| ClickBench | Single table | 1 | Real-world analytics patterns |
See Also
- TPC-DS Benchmark - Standard normalized TPC-DS
- ClickBench - Another single-table analytics benchmark
- Data Vault - Alternative schema modeling approach
- Platform Comparison - Platform capabilities