Skip to content

Commit 10eb570

Browse files
committed
Fix broken scripts/tpch/prepare (copy dbgen's output to target directory)
1 parent f9b93e3 commit 10eb570

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: scripts/tpch/prepare

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ cp dbgen dists.dss /var/lib/postgresql/tmp/
1515
cd /var/lib/postgresql/tmp
1616
echo "Executing: dbgen -s $SCALE"
1717
./dbgen -s $SCALE
18+
DSS_DATA_DIR=/tmp/dss-data
19+
[ -d $DSS_DATA_DIR ] && rm -rf $DSS_DATA_DIR
20+
mkdir $DSS_DATA_DIR
21+
for i in ./*.tbl; do sed 's/|$//' "$i" > "$DSS_DATA_DIR/${i/tbl/csv}"; done;
1822
rm -rf /var/lib/postgresql/tmp
1923
cd "$SD"
2024
cp -r resources/pg_tpch src/

0 commit comments

Comments
 (0)