Skip to content

Commit 28939f0

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

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

benchmarks/bench.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,22 @@ run_tpcds() {
664664

665665
# Check if TPCDS data directory exists
666666
if [ ! -d "${TPCDS_DIR}" ]; then
667-
echo "Error: TPC-DS data directory does not exist: ${TPCDS_DIR}"
668-
echo ""
669-
echo "Please prepare TPC-DS data first by running:"
670-
echo " ./bench.sh data tpcds"
671-
echo ""
672-
return 1
667+
echo "Error: TPC-DS data directory does not exist: ${TPCDS_DIR}" >&2
668+
echo "" >&2
669+
echo "Please prepare TPC-DS data first by following instructions:" >&2
670+
echo " ./bench.sh data tpcds" >&2
671+
echo "" >&2
672+
exit 1
673+
fi
674+
675+
# Check if directory contains parquet files
676+
if ! find "${TPCDS_DIR}" -name "*.parquet" -print -quit | grep -q .; then
677+
echo "Error: TPC-DS data directory exists but contains no parquet files: ${TPCDS_DIR}" >&2
678+
echo "" >&2
679+
echo "Please prepare TPC-DS data first by following instructions:" >&2
680+
echo " ./bench.sh data tpcds" >&2
681+
echo "" >&2
682+
exit 1
673683
fi
674684

675685
RESULTS_FILE="${RESULTS_DIR}/tpcds_sf1.json"

0 commit comments

Comments
 (0)