From 1fd376e848d7c662bf04c9a887c594a1d43e135b Mon Sep 17 00:00:00 2001 From: englefly Date: Thu, 28 Sep 2023 14:45:21 +0800 Subject: [PATCH] default sf change to 100G --- tools/tpcds-tools/bin/create-tpcds-tables.sh | 5 +++-- .../{create-tpcds-tables.sql => create-tpcds-tables-sf1.sql} | 0 tools/tpch-tools/bin/create-tpch-tables.sh | 5 +++-- tools/tpch-tools/conf/doris-cluster.conf | 2 +- .../{create-tpch-tables.sql => create-tpch-tables-sf1.sql} | 0 5 files changed, 7 insertions(+), 5 deletions(-) rename tools/tpcds-tools/ddl/{create-tpcds-tables.sql => create-tpcds-tables-sf1.sql} (100%) rename tools/tpch-tools/ddl/{create-tpch-tables.sql => create-tpch-tables-sf1.sql} (100%) diff --git a/tools/tpcds-tools/bin/create-tpcds-tables.sh b/tools/tpcds-tools/bin/create-tpcds-tables.sh index fbf1cf78f66dc3..c9268fef7e5357 100755 --- a/tools/tpcds-tools/bin/create-tpcds-tables.sh +++ b/tools/tpcds-tools/bin/create-tpcds-tables.sh @@ -47,7 +47,7 @@ OPTS=$(getopt \ eval set -- "${OPTS}" HELP=0 -SCALE_FACTOR=1 +SCALE_FACTOR=100 if [[ $# == 0 ]]; then usage @@ -101,13 +101,14 @@ echo "FE_HOST: ${FE_HOST}" echo "FE_QUERY_PORT: ${FE_QUERY_PORT}" echo "USER: ${USER}" echo "DB: ${DB}" +echo "SF: ${SCALE_FACTOR}" mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -e "DROP DATABASE IF EXISTS ${DB}" mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -e "CREATE DATABASE ${DB}" if [[ ${SCALE_FACTOR} -eq 1 ]]; then echo "Run SQLs from ${CURDIR}/../ddl/create-tpcds-tables.sql" - mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpcds-tables.sql + mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpcds-tables-sf1.sql elif [[ ${SCALE_FACTOR} -eq 100 ]]; then echo "Run SQLs from ${CURDIR}/../ddl/create-tpcds-tables-sf100.sql" mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpcds-tables-sf100.sql diff --git a/tools/tpcds-tools/ddl/create-tpcds-tables.sql b/tools/tpcds-tools/ddl/create-tpcds-tables-sf1.sql similarity index 100% rename from tools/tpcds-tools/ddl/create-tpcds-tables.sql rename to tools/tpcds-tools/ddl/create-tpcds-tables-sf1.sql diff --git a/tools/tpch-tools/bin/create-tpch-tables.sh b/tools/tpch-tools/bin/create-tpch-tables.sh index 9c494a87cc827c..8b9635a4ceefb0 100755 --- a/tools/tpch-tools/bin/create-tpch-tables.sh +++ b/tools/tpch-tools/bin/create-tpch-tables.sh @@ -47,7 +47,7 @@ OPTS=$(getopt \ eval set -- "${OPTS}" HELP=0 -SCALE_FACTOR=1 +SCALE_FACTOR=100 if [[ $# == 0 ]]; then usage @@ -101,12 +101,13 @@ echo "FE_HOST: ${FE_HOST}" echo "FE_QUERY_PORT: ${FE_QUERY_PORT}" echo "USER: ${USER}" echo "DB: ${DB}" +echo "SF: ${SCALE_FACTOR}" mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -e "CREATE DATABASE IF NOT EXISTS ${DB}" if [[ ${SCALE_FACTOR} -eq 1 ]]; then echo "Run SQLs from ${CURDIR}/../ddl/create-tpch-tables.sql" - mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpch-tables.sql + mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpch-tables-sf1.sql elif [[ ${SCALE_FACTOR} -eq 100 ]]; then echo "Run SQLs from ${CURDIR}/../ddl/create-tpch-tables-sf100.sql" mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-tpch-tables-sf100.sql diff --git a/tools/tpch-tools/conf/doris-cluster.conf b/tools/tpch-tools/conf/doris-cluster.conf index 8880602ed5d951..731d690831db43 100644 --- a/tools/tpch-tools/conf/doris-cluster.conf +++ b/tools/tpch-tools/conf/doris-cluster.conf @@ -26,4 +26,4 @@ export USER='root' # Doris password export PASSWORD='' # The database where TPC-H tables located -export DB='tpch_test' +export DB='tpch_test2' diff --git a/tools/tpch-tools/ddl/create-tpch-tables.sql b/tools/tpch-tools/ddl/create-tpch-tables-sf1.sql similarity index 100% rename from tools/tpch-tools/ddl/create-tpch-tables.sql rename to tools/tpch-tools/ddl/create-tpch-tables-sf1.sql