Skip to content

Conversation

@EnricoMi
Copy link
Contributor

Running the benchmark with one SCALE_FACTOR like

make .venv
SCALE_FACTOR=1.0 make run-polars

generates the scale 1 test data.

Then running the benchmark with a different scale factor fails:

SCALE_FACTOR=10.0 make run-polars

.venv/bin/python -m queries.polars
Code block 'Run polars query 1' took: 0.00011 s
q1 FAILED
No such file or directory (os error 2): data/tables/scale-10.0/lineitem.parquet

Problem is that the data generation with SCALE_FACTOR=1.0 creates file data/tables/.generated, which indicates make test data are generated. This file disallows generating data with a different scale factor.

This fix uses the data output directory containing SCALE_FACTOR as the target.

@EnricoMi EnricoMi force-pushed the fix-makefile-data-tables-scale branch from 1a843c2 to fc55983 Compare June 23, 2025 17:33
@ritchie46 ritchie46 merged commit 629193c into pola-rs:main Jun 26, 2025
1 of 2 checks passed
r-brink pushed a commit to r-brink/polars-benchmark that referenced this pull request Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants