This commit is contained in:
jsc0218 2024-10-31 14:20:47 +00:00
parent 4e2693bb46
commit fa5010ba18

View File

@ -1,21 +1,19 @@
-- Tags: no-parallel
-- modified from test_01155_ordinary
DROP DATABASE IF EXISTS test_01155_ordinary;
-- modified from test_01155_ordinary, to test special optimization path for virtual row
DROP DATABASE IF EXISTS test_03031;
SET allow_deprecated_database_ordinary = 1;
CREATE DATABASE test_03031;
CREATE DATABASE test_01155_ordinary ENGINE = Ordinary;
USE test_01155_ordinary;
USE test_03031;
CREATE TABLE src (s String) ENGINE = MergeTree() ORDER BY s;
INSERT INTO src(s) VALUES ('before moving tables');
CREATE TABLE dist (s String) ENGINE = Distributed(test_shard_localhost, test_01155_ordinary, src);
CREATE TABLE dist (s String) ENGINE = Distributed(test_shard_localhost, test_03031, src);
SET enable_analyzer=0;
SELECT _table FROM merge('test_01155_ordinary', '') ORDER BY _table, s;
SELECT _table FROM merge('test_03031', '') ORDER BY _table, s;
DROP TABLE src;
DROP TABLE dist;
DROP DATABASE test_01155_ordinary;
DROP DATABASE test_03031;