Skip to content

Commit

Permalink
Format modification1
Browse files Browse the repository at this point in the history
  • Loading branch information
cat-with-cat committed Nov 10, 2024
1 parent 1e87e98 commit ea67333
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions tools/ssb-tools/bin/create-ssb-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ if [ "${SCALE_FACTOR}" -eq 1 ]; then
printf "Error: Failed to execute create-ssb-flat-tables-sf1.sql.\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 100 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-ssb-tables-sf100.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}"/../ddl/create-ssb-tables-sf100.sql 2>&1; then
Expand All @@ -133,7 +132,6 @@ elif [ "${SCALE_FACTOR}" -eq 100 ]; then
printf "Error: Failed to execute create-ssb-flat-tables-sf100.sql.\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 1000 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-ssb-tables-sf1000.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}/../ddl/create-ssb-tables-sf1000.sql" 2>&1; then
Expand Down
3 changes: 0 additions & 3 deletions tools/tpcds-tools/bin/create-tpcds-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,18 @@ if [ "${SCALE_FACTOR}" -eq 1 ]; then
printf "Error: Failed to execute create-tpcds-tables-sf1.sql.\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 100 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpcds-tables-sf100.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}/../ddl/create-tpcds-tables-sf100.sql" 2>&1; then
printf "Error: Failed to execute create-tpcds-tables-sf100.sql.\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 1000 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpcds-tables-sf1000.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}/../ddl/create-tpcds-tables-sf1000.sql" 2>&1; then
printf "Error: Failed to execute create-tpcds-tables-sf1000.sql.\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 10000 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpcds-tables-sf10000.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" <"${CURDIR}/../ddl/create-tpcds-tables-sf10000.sql" 2>&1; then
Expand Down
3 changes: 0 additions & 3 deletions tools/tpch-tools/bin/create-tpch-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,20 @@ if [ "${SCALE_FACTOR}" -eq 1 ]; then
printf "Error: Failed to execute SQLs from create-tpch-tables-sf1.sql\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 100 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpch-tables-sf100.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" \
<"${CURDIR}/../ddl/create-tpch-tables-sf100.sql" 2>&1; then
printf "Error: Failed to execute SQLs from create-tpch-tables-sf100.sql\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 1000 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpch-tables-sf1000.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" \
<"${CURDIR}/../ddl/create-tpch-tables-sf1000.sql" 2>&1; then
printf "Error: Failed to execute SQLs from create-tpch-tables-sf1000.sql\n" >&2
exit 1
fi
# shellcheck disable=SC2292
elif [ "${SCALE_FACTOR}" -eq 10000 ]; then
echo "Run SQLs from ${CURDIR}/../ddl/create-tpch-tables-sf10000.sql"
if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" \
Expand Down

0 comments on commit ea67333

Please sign in to comment.