File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments