mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-07 16:14:52 +00:00
35 lines
1.6 KiB
SQL
35 lines
1.6 KiB
SQL
drop database if exists db_01530_atomic sync;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key;
|
|
drop database db_01530_atomic sync;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key;
|
|
drop database db_01530_atomic sync;
|
|
|
|
|
|
set database_atomic_wait_for_drop_and_detach_synchronously=1;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key;
|
|
drop database db_01530_atomic;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key;
|
|
drop database db_01530_atomic;
|
|
|
|
|
|
set database_atomic_wait_for_drop_and_detach_synchronously=0;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key;
|
|
drop database db_01530_atomic;
|
|
|
|
create database db_01530_atomic Engine=Atomic;
|
|
create table db_01530_atomic.data (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/db_01530_atomic/data', 'test') order by key; -- { serverError 253; }
|
|
-- TODO: SYSTEM FORCE DROP and uncomment the line below to cleanup the data after test
|
|
-- (otherwise the test is not retriable...)
|
|
--
|
|
-- drop database db_01530_atomic sync;
|