This commit is contained in:
Michael Kolupaev 2024-09-13 20:04:28 +00:00
parent adb905a692
commit 59d1f9a6b1
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,2 @@
s1 r1 OK 0 0
1
s1 r1 OK 0 0
0

View File

@ -5,11 +5,11 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
db="rdb_$CLICKHOUSE_DATABASE"
$CLICKHOUSE_CLIENT -nq "
$CLICKHOUSE_CLIENT --distributed_ddl_output_mode=none -nq "
create database $db engine=Replicated('/test/$CLICKHOUSE_DATABASE/rdb', 's1', 'r1');
create table $db.a (x Int8) engine ReplicatedMergeTree order by x;"
uuid=`$CLICKHOUSE_CLIENT -q "select uuid from system.tables where database = '$db' and name = 'a'"`
$CLICKHOUSE_CLIENT -nq "
$CLICKHOUSE_CLIENT --distributed_ddl_output_mode=none -nq "
select count() from system.zookeeper where path = '/clickhouse/tables' and name = '$uuid';
drop table $db.a sync;
select count() from system.zookeeper where path = '/clickhouse/tables' and name = '$uuid';"