#26181·duckdb

TPC-DS data generated with multiple threads does not match single-threaded data

Author: DanCoryCreated Sep 25, 2026Updated Sep 30, 2026
Labelsreproduced

What happens?

If you call dsdgen after set threads=1, you get different data than if you use 12 threads (the default on my machine). The single-threaded data matches the official benchmark generator. The multi-threaded data does not.

I will investigate fixing this.

To Reproduce

load tpcds;
.open threads
set threads to 12;
call dsdgen(sf=10, keys=true);
select cs_sold_date_sk from catalog_sales where cs_bill_customer_sk=475255 group by all order by all;
.open nothreads
set threads to 1;
call dsdgen(sf=10, keys=true);
select cs_sold_date_sk from catalog_sales where cs_bill_customer_sk=475255 group by all order by all;

Note: 12 is the default number of threads on my machine. For the threaded data, the second record is 2451676. For the unthreaded data, the second record is 2451675.

OS:

x86_64

DuckDB Version:

DuckDB v2.0.0-alpha42069 (Cyanoptera)

DuckDB Client:

CLI

Hardware:

No response

Full Name:

Dan Cory

Affiliation:

self

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

  • Yes, I have

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set