diff --git a/tools/tpcds-tools/bin/create-tpcds-tables.sh b/tools/tpcds-tools/bin/create-tpcds-tables.sh index fbf1cf78f66dc39..c9268fef7e53572 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 9c494a87cc827c8..8b9635a4ceefb04 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 8880602ed5d9511..731d690831db432 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