Skip to content

Commit 71f05a3

Browse files
authored
Generate expected benchmark query results (#4010)
1 parent 3452345 commit 71f05a3

File tree

3 files changed

+12
-59
lines changed

3 files changed

+12
-59
lines changed

benchmarks/entrypoint.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

benchmarks/tpch-gen.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,27 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
#set -e
19+
mkdir -p data/answers 2>/dev/null
20+
21+
set -e
2022

2123
pushd ..
2224
. ./dev/build-set-env.sh
2325
popd
2426

25-
docker build -f tpchgen.dockerfile -t datafusion-tpchgen:$DATAFUSION_VERSION .
26-
2727
# Generate data into the ./data directory if it does not already exist
2828
FILE=./data/supplier.tbl
2929
if test -f "$FILE"; then
3030
echo "$FILE exists."
3131
else
32-
mkdir data 2>/dev/null
33-
docker run -v `pwd`/data:/data -it --rm datafusion-tpchgen:$DATAFUSION_VERSION $1
32+
docker run -v `pwd`/data:/data -it --rm ghcr.io/databloom-ai/tpch-docker:main -vf -s $1
3433
ls -l data
34+
fi
35+
36+
# Copy expected answers (at SF=1) into the ./data/answers directory if it does not already exist
37+
FILE=./data/answers/q1.out
38+
if test -f "$FILE"; then
39+
echo "$FILE exists."
40+
else
41+
docker run -v `pwd`/data:/data -it --entrypoint /bin/bash --rm ghcr.io/databloom-ai/tpch-docker:main -c "cp /opt/tpch/2.18.0_rc2/dbgen/answers/* /data/answers/"
3542
fi

benchmarks/tpchgen.dockerfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)