2020-06-03 18:51:49 +00:00
|
|
|
-- just a smoke test
|
|
|
|
|
2020-06-03 21:06:36 +00:00
|
|
|
-- quirk for ON CLUSTER does not uses currentDatabase()
|
|
|
|
drop database if exists db_01294;
|
|
|
|
create database db_01294;
|
2021-07-30 16:34:18 +00:00
|
|
|
set distributed_ddl_output_mode='throw';
|
2020-06-03 21:06:36 +00:00
|
|
|
|
|
|
|
drop table if exists db_01294.dist_01294;
|
|
|
|
create table db_01294.dist_01294 as system.one engine=Distributed(test_shard_localhost, system, one);
|
2020-06-03 18:51:49 +00:00
|
|
|
-- flush
|
2020-06-03 21:06:36 +00:00
|
|
|
system flush distributed db_01294.dist_01294;
|
|
|
|
system flush distributed on cluster test_shard_localhost db_01294.dist_01294;
|
2020-06-03 18:51:49 +00:00
|
|
|
-- stop
|
2020-06-04 17:22:29 +00:00
|
|
|
system stop distributed sends;
|
2020-06-03 21:06:36 +00:00
|
|
|
system stop distributed sends db_01294.dist_01294;
|
|
|
|
system stop distributed sends on cluster test_shard_localhost db_01294.dist_01294;
|
2020-06-03 18:51:49 +00:00
|
|
|
-- start
|
2020-06-04 17:22:29 +00:00
|
|
|
system start distributed sends;
|
2020-06-03 21:06:36 +00:00
|
|
|
system start distributed sends db_01294.dist_01294;
|
|
|
|
system start distributed sends on cluster test_shard_localhost db_01294.dist_01294;
|
2020-06-03 18:51:49 +00:00
|
|
|
|
2020-06-03 21:06:36 +00:00
|
|
|
drop database db_01294;
|