mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
23 lines
804 B
SQL
23 lines
804 B
SQL
-- Tags: distributed, no-parallel
|
|
|
|
-- just a smoke test
|
|
|
|
-- quirk for ON CLUSTER does not uses currentDatabase()
|
|
drop database if exists db_01294;
|
|
create database db_01294;
|
|
set distributed_ddl_output_mode='throw';
|
|
|
|
drop table if exists db_01294.dist_01294;
|
|
create table db_01294.dist_01294 as system.one engine=Distributed(test_shard_localhost, system, one);
|
|
-- flush
|
|
system flush distributed db_01294.dist_01294;
|
|
system flush distributed on cluster test_shard_localhost db_01294.dist_01294;
|
|
-- stop
|
|
system stop distributed sends db_01294.dist_01294;
|
|
system stop distributed sends on cluster test_shard_localhost db_01294.dist_01294;
|
|
-- start
|
|
system start distributed sends db_01294.dist_01294;
|
|
system start distributed sends on cluster test_shard_localhost db_01294.dist_01294;
|
|
|
|
drop database db_01294;
|