File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ run_clickbench_1() {
389
389
RESULTS_FILE=" ${RESULTS_DIR} /clickbench_1.json"
390
390
echo " RESULTS_FILE: ${RESULTS_FILE} "
391
391
echo " Running clickbench (1 file) benchmark..."
392
- $CARGO_COMMAND --bin dfbench -- clickbench --iterations 10 --path " ${DATA_DIR} /hits.parquet" -o ${RESULTS_FILE}
392
+ $CARGO_COMMAND --bin dfbench -- clickbench --iterations 10 --path " ${DATA_DIR} /hits.parquet" --queries_path = " ${SCRIPT_DIR} /benchmarks/queries/clickbench/queries.sql " - o ${RESULTS_FILE}
393
393
}
394
394
395
395
# Runs the clickbench benchmark with a single large parquet file
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ use crate::{BenchmarkRun, CommonOpt};
34
34
/// [1]: https://github.com/ClickHouse/ClickBench
35
35
/// [2]: https://github.com/ClickHouse/ClickBench/tree/main/datafusion
36
36
#[ derive( Debug , StructOpt , Clone ) ]
37
+ #[ structopt( verbatim_doc_comment) ]
37
38
pub struct RunOpt {
38
39
/// Query number. If not specified, runs all queries
39
40
#[ structopt( short, long) ]
@@ -47,7 +48,6 @@ pub struct RunOpt {
47
48
/// (partitioned, 100 files)
48
49
#[ structopt(
49
50
parse( from_os_str) ,
50
- required = true ,
51
51
short = "p" ,
52
52
long = "path" ,
53
53
default_value = "benchmarks/data/hits.parquet"
@@ -57,7 +57,8 @@ pub struct RunOpt {
57
57
/// Path to queries.sql (single file)
58
58
#[ structopt(
59
59
parse( from_os_str) ,
60
- required = true ,
60
+ short = "qp" ,
61
+ long = "queries_path" ,
61
62
default_value = "benchmarks/queries/clickbench/queries.sql"
62
63
) ]
63
64
queries_path : PathBuf ,
You can’t perform that action at this time.
0 commit comments