mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Fix test
This commit is contained in:
parent
adb905a692
commit
59d1f9a6b1
@ -1,4 +1,2 @@
|
||||
s1 r1 OK 0 0
|
||||
1
|
||||
s1 r1 OK 0 0
|
||||
0
|
||||
|
@ -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';"
|
||||
|
Loading…
Reference in New Issue
Block a user