Make test simpler

This commit is contained in:
Alexey Milovidov 2024-07-28 16:44:53 +02:00
parent 1042fc68c2
commit 81714ce561

View File

@ -8,7 +8,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
QUERY_ID="${CLICKHOUSE_DATABASE}_test_02585_query_to_kill_id_1"
$CLICKHOUSE_CLIENT --query_id="$QUERY_ID" --max_rows_to_read 0 -n -q "
create temporary table tmp as select * from numbers(500000000);
create temporary table tmp as select * from numbers(100000000);
select * from remote('127.0.0.2', 'system.numbers_mt') where number in (select * from tmp);" &> /dev/null &
$CLICKHOUSE_CLIENT -q "SYSTEM FLUSH LOGS"
@ -19,7 +19,7 @@ do
if [ -n "$res" ]; then
break
fi
sleep 1
sleep 1
done
$CLICKHOUSE_CLIENT -q "kill query where query_id = '$QUERY_ID' sync" &> /dev/null