Update 01600_count_of_parts_metrics.sh

This commit is contained in:
alexey-milovidov 2021-01-07 06:36:00 +03:00 committed by GitHub
parent b2e4c0ee71
commit 65b4008d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
verify_sql="SELECT COUNT(1)
@ -18,7 +19,7 @@ FROM system.parts
) as b USING (Parts,PartsActive,PartsInactive)"
verify(){
for i in $(seq 1 10)
for _ in $(seq 1 10)
do
result=$( $CLICKHOUSE_CLIENT -m --query="$verify_sql" )
if [ "$result" = "1" ];then