Skip to content

Commit

Permalink
fix(ci): fix benchmark ci failure (#17005)
Browse files Browse the repository at this point in the history
* fix(ci): fix benchmark ci failure

* fix(ci): fix benchmark ci failure
  • Loading branch information
zhang2014 authored Dec 6, 2024
1 parent e7e53e3 commit 2ea842c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmark/clickbench/benchmark_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ until bendsql --query="SHOW WAREHOUSES LIKE '${CLOUD_WAREHOUSE}'" | grep -q "Run
sleep 10
done

export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443/${BENCHMARK_DATABASE}?warehouse=${CLOUD_WAREHOUSE}"
export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443?warehouse=${CLOUD_WAREHOUSE}"

if [[ "${BENCHMARK_DATASET}" == "load" ]]; then
echo "Creating database..."
echo "CREATE DATABASE ${BENCHMARK_DATABASE};" | bendsql --database default
fi

export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443/${BENCHMARK_DATABASE}?warehouse=${CLOUD_WAREHOUSE}"

echo "Checking session settings..."
bendsql --query="select * from system.settings where value != default;" -o table

Expand Down Expand Up @@ -117,6 +119,7 @@ for query in "${BENCHMARK_DATASET}"/queries/*.sql; do
done

echo "Cleaning up..."
export BENDSQL_DSN="databend://${CLOUD_USER}:${CLOUD_PASSWORD}@${CLOUD_GATEWAY}:443?login=disable"
if [[ "${BENCHMARK_DATASET}" == "load" ]]; then
echo "Dropping database..."
echo "DROP DATABASE IF EXISTS ${BENCHMARK_DATABASE};" | bendsql
Expand Down

0 comments on commit 2ea842c

Please sign in to comment.