Skip to content

Commit

Permalink
default sf change to 100G
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 28, 2023
1 parent 9ed7b47 commit 80091dd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tools/tpcds-tools/bin/create-tpcds-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OPTS=$(getopt \

eval set -- "${OPTS}"
HELP=0
SCALE_FACTOR=1
SCALE_FACTOR=100

if [[ $# == 0 ]]; then
usage
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions tools/tpch-tools/bin/create-tpch-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OPTS=$(getopt \

eval set -- "${OPTS}"
HELP=0
SCALE_FACTOR=1
SCALE_FACTOR=100

if [[ $# == 0 ]]; then
usage
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/tpch-tools/conf/doris-cluster.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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'
File renamed without changes.

0 comments on commit 80091dd

Please sign in to comment.