diff --git a/.gitignore b/.gitignore index c1495eb6ad215..663d0eccd4be4 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,6 @@ venv/ __pycache__/ *.zip + +# tpch data set +benchmark/tpch/data diff --git a/benchmark/tpch/README.md b/benchmark/tpch/README.md new file mode 100644 index 0000000000000..8b8af781aced7 --- /dev/null +++ b/benchmark/tpch/README.md @@ -0,0 +1,11 @@ +# Databend TPCH-Benchmark + +### TPCH DataSet +Run the following command to generate tpch dataset: +```shell +# scale_factor: scale of the database population. scale 1.0 represents ~1 GB of data +../../scripts/setup/dev_setup.sh -t +``` + +### TPCH Benchmark +**TBD** \ No newline at end of file diff --git a/scripts/setup/dev_setup.sh b/scripts/setup/dev_setup.sh index 2f81ca0f5ffa7..09e31ff000815 100755 --- a/scripts/setup/dev_setup.sh +++ b/scripts/setup/dev_setup.sh @@ -329,6 +329,7 @@ function usage { -d Install development tools -p Install profile -s Install codegen tools + -t Install tpch data set -v Verbose mode EOF } @@ -353,6 +354,7 @@ Build tools (since -b or no option was provided): * protobuf-compiler * thrift-compiler * openjdk + * tpch dataset for benchmark EOF fi @@ -379,6 +381,12 @@ Moreover, ~/.profile will be updated (since -p was provided). EOF fi + if [[ "$INSTALL_TPCH_DATA" == "true" ]]; then + cat </dev/null + docker run -v `pwd`/benchmark/tpch/data:/data --rm databend:latest + fi +fi + [[ "${AUTO_APPROVE}" == "false" ]] && cat <