mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Use default database
This commit is contained in:
parent
4dcb568090
commit
46424a4fa8
@ -1,6 +1,4 @@
|
||||
localhost 9000 0 0 0
|
||||
localhost 9000 0 0 0
|
||||
localhost 9000 0 0 0
|
||||
-- { echoOn }
|
||||
|
||||
SELECT * FROM t1_local ORDER BY tc1, tc2;
|
||||
@ -13,4 +11,3 @@ localhost 9000 0 0 0
|
||||
SELECT * FROM t1_local ORDER BY tc1, tc2;
|
||||
partition1 2 3
|
||||
partition2 2 4
|
||||
localhost 9000 0 0 0
|
||||
|
@ -1,12 +1,8 @@
|
||||
-- Tags: distributed, no-parallel, no-replicated-database
|
||||
-- Tags: distributed, no-replicated-database
|
||||
-- Tag no-replicated-database: ON CLUSTER is not allowed
|
||||
|
||||
SET distributed_ddl_output_mode='throw';
|
||||
|
||||
DROP DATABASE IF EXISTS 02541_db ON CLUSTER test_shard_localhost;
|
||||
CREATE DATABASE 02541_db ON CLUSTER test_shard_localhost;
|
||||
USE 02541_db;
|
||||
|
||||
CREATE TABLE t1_local ON CLUSTER test_shard_localhost(partition_col_1 String, tc1 int,tc2 int) ENGINE=MergeTree() PARTITION BY partition_col_1 ORDER BY tc1;
|
||||
|
||||
INSERT INTO t1_local VALUES('partition1', 1,1);
|
||||
@ -25,5 +21,3 @@ DELETE FROM t1_local ON CLUSTER test_shard_localhost WHERE tc1 = 1;
|
||||
SELECT * FROM t1_local ORDER BY tc1, tc2;
|
||||
|
||||
-- { echoOff }
|
||||
|
||||
DROP DATABASE 02541_db ON CLUSTER test_shard_localhost;
|
||||
|
Loading…
Reference in New Issue
Block a user