TPC-DS Extension
The tpcds extension implements the data generator and queries for the TPC-DS benchmark.
Installing and Loading
The tpcds extension will be transparently autoloaded on first use from the official extension repository. If you would like to install and load it manually, run:
INSTALL tpcds; LOAD tpcds;
Usage
To generate data for scale factor 1, use:
CALL dsdgen(sf = 1);
To run a query, e.g., query 8, use:
PRAGMA tpcds(8);
| s_store_name | sum(ss_net_profit) |
|---|---|
| able | -10354620.18 |
| ation | -10576395.52 |
| bar | -10625236.01 |
| ese | -10076698.16 |
| ought | -10994052.78 |
Generating the Schema
It's possible to generate the schema of TPC-DS without any data by setting the scale factor to 0:
CALL dsdgen(sf = 0);
Limitations
The tpchds(⟨query_id⟩) function runs a fixed TPC-DS query with pre-defined bind parameters (a.k.a. substitution parameters). It is not possible to change the query parameters using the tpcds extension.
© Copyright 2018–2024 Stichting DuckDB Foundation
Licensed under the MIT License.
https://duckdb.org/docs/extensions/tpcds.html