Apache DataFusion SQL Query Engine
improve: supports user-defined scale_factor for dbgen (#2741)
xudong.w0289bfe6a98b
diff --git a/benchmarks/README.md b/benchmarks/README.mdindex c7e7f12641..ba68b507da 100644--- a/benchmarks/README.md+++ b/benchmarks/README.md@@ -33,7 +33,8 @@ TPC-H data can be generated using the `tpch-gen.sh` script, which creates a Dockgenerator.```bash-./tpch-gen.sh+# scale_factor: scale of the database population. scale 1.0 represents ~1 GB of data+./tpch-gen.sh <scale_factor>```Data will be generated into the `data` subdirectory and will not be checked in because this directory has been addeddiff --git a/benchmarks/entrypoint.sh b/benchmarks/entrypoint.shindex 71c04324af..312376fed3 100755--- a/benchmarks/entrypoint.sh+++ b/benchmarks/entrypoint.sh@@ -18,5 +18,5 @@set -ecd /tpch-dbgen-./dbgen -vf -s 1+./dbgen -vf -s $1mv *.tbl /data\ No newline at end of filediff --git a/benchmarks/run.sh b/benchmarks/run.shdeleted file mode 100755index 9cbbf0e16c..0000000000--- a/benchmarks/run.sh+++ /dev/null@@ -1,26 +0,0 @@-#!/bin/bash-# Licensed to the Apache Software Foundation (ASF) under one-# or more contributor license agreements. See the NOTICE file-# distributed with this work for additional information-# regarding copyright ownership. The ASF licenses this file-# to you under the Apache License, Version 2.0 (the-# "License"); you may not use this file except in compliance-# with the License. You may obtain a copy of the License at-#-# http://www.apache.org/licenses/LICENSE-2.0-#-# Unless required by applicable law or agreed to in writing,-# software distributed under the License is distributed on an-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY-# KIND, either express or implied. See the License for the-# specific language governing permissions and limitations-# under the License.-set -e--# This bash script is meant to be run inside the docker-compose environment. Check the README for instructions--cd /-for query in 1 3 5 6 7 10 12 13-do- /tpch benchmark ballista --host ballista-scheduler --port 50050 --query $query --path /data --format tbl --iterations 1 --debug-donediff --git a/benchmarks/tpch-gen.sh b/benchmarks/tpch-gen.shindex f103677462..0684fd97a2 100755--- a/benchmarks/tpch-gen.sh+++ b/benchmarks/tpch-gen.sh@@ -21,7 +21,8 @@pushd ... ./dev/build-set-env.shpopd-docker build -t datafusion-tpchgen:$DATAFUSION_VERSION -f tpchgen.dockerfile .++docker build -f tpchgen.dockerfile -t datafusion-tpchgen:$DATAFUSION_VERSION .# Generate data into the ./data directory if it does not already existFILE=./data/supplier.tbl@@ -29,6 +30,6 @@ if test -f "$FILE"; thenecho "$FILE exists."elsemkdir data 2>/dev/null- docker run -v `pwd`/data:/data -it --rm datafusion-tpchgen:$DATAFUSION_VERSION+ docker run datafusion-tpchgen:$DATAFUSION_VERSION $1 -v `pwd`/data:/data -it --rm datafusion-tpchgen:$DATAFUSION_VERSIONls -l datafi\ No newline at end of filediff --git a/benchmarks/tpchgen.dockerfile b/benchmarks/tpchgen.dockerfileindex 69434708bf..30acdead7c 100644--- a/benchmarks/tpchgen.dockerfile+++ b/benchmarks/tpchgen.dockerfile@@ -29,4 +29,4 @@ ADD entrypoint.sh /tpch-dbgen/VOLUME /data-ENTRYPOINT [ "bash", "./entrypoint.sh" ]+ENTRYPOINT [ "bash", "./entrypoint.sh" ]