Skip to main content

Sample Data

Every Wvlet engine session can query the TPC-H and TPC-DS tables, with no files, downloads, or setup. Use them to learn Wvlet and to try queries at a realistic size.

wvlet run "from tpch.sf1.lineitem group by l_returnflag agg _.count"
wvlet run "from tpcds.tiny.store_sales join tpcds.tiny.item on ss_item_sk = i_item_sk group by i_category agg _.count"

The schema picks the size: tiny is scale factor 0.01, and sf<n> is scale factor n, as in Trino.

CatalogTablesSizesList them
tpch8tiny, up to sf1000show tables in tpch.tiny
tpcds24tiny, up to sf10show tables in tpcds.tiny
note

The rows are generated with the benchmarks' table structures and sizes, but not their reference values, so query answers differ from the official ones. For benchmarks, generate Parquet files with DuckDB's dbgen or dsdgen and register them.

Unqualified table names​

To write from lineitem, set prepareTPCH (or prepareTPCDS) in a profile:

~/.wvlet/profiles.json
{
"profiles": [
{
"name": "tpch",
"connectors": [
{
"name": "wvlet",
"type": "wvlet",
"properties": { "prepareTPCH": true, "tpchScaleFactor": 1 }
}
]
}
]
}
wvlet run --profile tpch "from lineitem group by l_returnflag agg _.count"
  • tpchScaleFactor and tpcdsScaleFactor default to 0.01. DuckDB connectors take the same properties.
  • Use one benchmark per connector: both have a customer table.
  • The tables are read-only, and their names can't also be in dataDir or tables.