Skip to content

how to run tpch benchmark datafusion #16598

Answered by zhuqi-lucas
l1t1 asked this question in Q&A
Discussion options

You must be logged in to vote

It isn’t a bug in DataFusion so much as in how the TPCH benchmark runner expects your data laid out. By default it will look under your --path for one directory per table (named exactly after the table), and then inside that directory expect one or more Parquet files. What you have today is a flat directory of files:

/par/tpch/sf4-parquet/
├─ customer.parquet
├─ lineitem.parquet
├─ nation.parquet
├─ orders.parquet
├─ part.parquet
├─ partsupp.parquet
├─ region.parquet
└─ supplier.parquet

When it tries to read table part it literally does a list() on /par/tpch/sf4-parquet/part (i.e. a directory), which doesn’t exist, hence the “NotFound … path: …/part” error.

A easy way to fix it:

cd /par/t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by l1t1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants