Skip to content

Commit ae567f5

Browse files
committed
minor: Allow to run TPCH bench for a specific query
1 parent 1dfc2f8 commit ae567f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

benchmarks/bench.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,9 @@ run_tpch_mem() {
427427
RESULTS_FILE="${RESULTS_DIR}/tpch_mem_sf${SCALE_FACTOR}.json"
428428
echo "RESULTS_FILE: ${RESULTS_FILE}"
429429
echo "Running tpch_mem benchmark..."
430+
QUERY=$([ -n "$ARG3" ] && echo "--query $ARG3" || echo "")
430431
# -m means in memory
431-
$CARGO_COMMAND --bin tpch -- benchmark datafusion --iterations 5 --path "${TPCH_DIR}" --prefer_hash_join "${PREFER_HASH_JOIN}" -m --format parquet -o "${RESULTS_FILE}"
432+
$CARGO_COMMAND --bin tpch -- benchmark datafusion --iterations 5 --path "${TPCH_DIR}" --prefer_hash_join "${PREFER_HASH_JOIN}" -m --format parquet -o "${RESULTS_FILE}" $QUERY
432433
}
433434

434435
# Runs the cancellation benchmark

0 commit comments

Comments
 (0)