File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ run_clickbench_partitioned() {
481
481
RESULTS_FILE=" ${RESULTS_DIR} /clickbench_partitioned.json"
482
482
echo " RESULTS_FILE: ${RESULTS_FILE} "
483
483
echo " Running clickbench (partitioned, 100 files) benchmark..."
484
- $CARGO_COMMAND --bin dfbench -- clickbench --iterations 5 --path " ${DATA_DIR} /hits_partitioned" --queries-path " ${SCRIPT_DIR} /queries/clickbench/queries.sql" -o " ${RESULTS_FILE} "
484
+ $CARGO_COMMAND --bin dfbench -- clickbench --iterations 5 --path " ${DATA_DIR} /hits_partitioned" --prefer_round_robin " ${PREFER_ROUND_ROBIN} " -- queries-path " ${SCRIPT_DIR} /queries/clickbench/queries.sql" -o " ${RESULTS_FILE} "
485
485
}
486
486
487
487
# Runs the clickbench "extended" benchmark with a single large parquet file
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ use datafusion_common::exec_datafusion_err;
27
27
use datafusion_common:: instant:: Instant ;
28
28
use structopt:: StructOpt ;
29
29
30
+ // hack to avoid `default_value is meaningless for bool` errors
31
+ type BoolDefaultTrue = bool ;
32
+
30
33
/// Run the clickbench benchmark
31
34
///
32
35
/// The ClickBench[1] benchmarks are widely cited in the industry and
@@ -68,6 +71,11 @@ pub struct RunOpt {
68
71
/// If present, write results json here
69
72
#[ structopt( parse( from_os_str) , short = "o" , long = "output" ) ]
70
73
output_path : Option < PathBuf > ,
74
+
75
+ /// If true then round robin repartitioning is used, if false then on demand repartitioning
76
+ /// True by default.
77
+ #[ structopt( short = "r" , long = "prefer_round_robin" , default_value = "true" ) ]
78
+ prefer_round_robin : BoolDefaultTrue ,
71
79
}
72
80
73
81
struct AllQueries {
You can’t perform that action at this time.
0 commit comments