Use default database

This commit is contained in:
Alexander Gololobov 2023-01-30 18:37:45 +01:00
parent 4dcb568090
commit 46424a4fa8
2 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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;