File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -609,9 +609,19 @@ data_tpch() {
609609
610610# Points to TPCDS data generation instructions
611611data_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
You can’t perform that action at this time.
0 commit comments