Skip to content

Commit 32e9e35

Browse files
committed
chore: Add TPCDS benchmarks.
1 parent b0a8b8f commit 32e9e35

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

benchmarks/bench.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,19 @@ data_tpch() {
609609

610610
# Points to TPCDS data generation instructions
611611
data_tpcds() {
612+
TPCDS_DIR="${DATA_DIR}"
613+
614+
# Check if TPCDS data directory exists
615+
if [ ! -d "${TPCDS_DIR}" ]; then
616+
echo ""
617+
echo "For TPC-DS data generation, please clone the datafusion-benchmarks repository:"
618+
echo " git clone https://github.com/apache/datafusion-benchmarks"
619+
echo ""
620+
return 1
621+
fi
622+
612623
echo ""
613-
echo "For TPC-DS data generation, please clone the datafusion-benchmarks repository:"
614-
echo " git clone https://github.com/apache/datafusion-benchmarks"
624+
echo "TPC-DS data already exists in ${TPCDS_DIR}"
615625
echo ""
616626
}
617627

0 commit comments

Comments
 (0)