Skip to content

Commit f859603

Browse files
committedFeb 19, 2022
dataset fixes on fetch
Signed-off-by: DIMITRIS KARNIKIS <[email protected]>
1 parent 73326b9 commit f859603

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed
 

‎evaluation/benchmarks/analytics-mts/input/setup.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ setup_dataset() {
2323
exit 1
2424
fi
2525
elif [ ! -f ./in_small.csv ] && [ "$1" = "--small" ]; then
26-
echo "Generating small-size inputs"
27-
# FIXME PR: Do we need all of them?
26+
if [ ! -f ./in_small.csv ]; then
27+
echo "Generating small-size inputs"
28+
# FIXME PR: Do we need all of them?
2829
curl -sf 'http://pac-n4.csail.mit.edu:81/pash_data/small/in_small.csv' > in_small.csv
30+
fi
2931
fi
3032
}
3133

‎evaluation/benchmarks/oneliners/input/setup.sh

+9-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ if [[ "$1" == "-c" ]]; then
1414
fi
1515

1616
setup_dataset() {
17-
if [ "$#" -eq 1 ] && [ "$1" = "--small" ]; then
18-
echo "Generating small-size inputs"
19-
# FIXME PR: Do we need all of them?
20-
curl -sf 'http://pac-n4.csail.mit.edu:81/pash_data/small/oneliners.zip' > oneliners.zip
21-
unzip oneliners.zip
22-
rm -f oneliners.zip
23-
return 0
17+
if [ "$#" -eq 1 ] && [ "$1" = "--small" ]; then
18+
if [ ! -d ./small ]; then
19+
echo "Generating small-size inputs"
20+
# FIXME PR: Do we need all of them?
21+
curl -sf 'http://pac-n4.csail.mit.edu:81/pash_data/small/oneliners.zip' > oneliners.zip
22+
unzip oneliners.zip
23+
rm -f oneliners.zip
2424
fi
25+
return 0
26+
fi
2527

2628
if [ ! -f ./1M.txt ]; then
2729
curl -sf 'http://ndr.md/data/dummy/1M.txt' > 1M.txt

‎evaluation/benchmarks/unix50/input/setup.sh

+9-7
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ fi
2222
setup_dataset() {
2323
# generate small inputs
2424
if [ "$#" -eq 1 ] && [ "$1" = "--small" ]; then
25-
echo "Generating small-size inputs"
26-
# FIXME PR: Do we need all of them?
27-
curl -sf 'http://pac-n4.csail.mit.edu:81/pash_data/small/unix50.zip' > unix50.zip
28-
unzip unix50.zip
29-
rm -f unix50.zip
30-
return 0
25+
if [ ! -d ./small ]; then
26+
echo "Generating small-size inputs"
27+
# FIXME PR: Do we need all of them?
28+
curl -sf 'http://pac-n4.csail.mit.edu:81/pash_data/small/unix50.zip' > unix50.zip
29+
unzip unix50.zip
30+
rm -f unix50.zip
31+
fi
32+
return 0
3133
fi
32-
34+
3335
for input in ${inputs[@]}
3436
do
3537
if [ ! -f "${input}.txt" ]; then

0 commit comments

Comments
 (0)
Please sign in to comment.