From 1469e1ec051a623886585a6ae37cdbdaf4bd3a19 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 18 Jan 2024 16:41:55 +1000 Subject: [PATCH] fix: Add error handling to clickhouse query --- .github/workflows/smoke-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoke-test.yaml b/.github/workflows/smoke-test.yaml index bb3db217..df11e52a 100644 --- a/.github/workflows/smoke-test.yaml +++ b/.github/workflows/smoke-test.yaml @@ -84,7 +84,7 @@ jobs: for sentry in "${all_sentries[@]}"; do echo "Checking $table table for $sentry..." while true; do - data_count=$(docker exec clickhouse-01 clickhouse-client --query "SELECT COUNT(*) FROM default.$table WHERE meta_client_name = '$sentry'") + data_count=$(docker exec clickhouse-01 clickhouse-client --query "SELECT COUNT(*) FROM default.$table WHERE meta_client_name = '$sentry'" || true) if [[ $data_count -gt 0 ]]; then echo "$table table has data from $sentry." break