Skip to content

Commit 6591bf3

Browse files
authored
Merge pull request #4 from alexanderlaw/main
Fix test pg_tpch
2 parents f9b93e3 + f9c7f5b commit 6591bf3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ createdb benchdb && ./ref_pgbench -i benchdb >results/prepare.log 2>&1
8989
<prepare>
9090
<!-- # First argument is 'scale' for db_gen - roughly equals to number of GB of raw data -->
9191
<![CDATA[
92-
scripts/tpch/prepare 1 >results/prepare.log 2>&1
92+
scripts/tpch/prepare 5 >results/prepare.log 2>&1
9393
]]>
9494
</prepare>
9595
<execute>

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)