mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
add test
This commit is contained in:
parent
e3890a9de1
commit
4e2693bb46
@ -156,7 +156,6 @@ read_in_order_two_level_merge_threshold = 5; --avoid preliminary merge
|
||||
DROP TABLE fixed_prefix;
|
||||
|
||||
SELECT '========';
|
||||
-- currently don't support virtual row in this case
|
||||
DROP TABLE IF EXISTS function_pk;
|
||||
|
||||
CREATE TABLE function_pk
|
||||
@ -179,7 +178,7 @@ ORDER BY (A,-B) ASC
|
||||
limit 3
|
||||
SETTINGS max_threads = 1,
|
||||
optimize_read_in_order = 1,
|
||||
read_in_order_two_level_merge_threshold = 0; --force preliminary merge
|
||||
read_in_order_two_level_merge_threshold = 5; --avoid preliminary merge
|
||||
|
||||
DROP TABLE function_pk;
|
||||
|
||||
@ -214,4 +213,4 @@ SETTINGS read_in_order_two_level_merge_threshold = 0,
|
||||
optimize_read_in_order = 1,
|
||||
max_threads = 2;
|
||||
|
||||
DROP TABLE distinct_in_order;
|
||||
DROP TABLE distinct_in_order;
|
@ -0,0 +1,2 @@
|
||||
dist
|
||||
src
|
@ -0,0 +1,21 @@
|
||||
-- Tags: no-parallel
|
||||
|
||||
-- modified from test_01155_ordinary
|
||||
DROP DATABASE IF EXISTS test_01155_ordinary;
|
||||
|
||||
SET allow_deprecated_database_ordinary = 1;
|
||||
|
||||
CREATE DATABASE test_01155_ordinary ENGINE = Ordinary;
|
||||
|
||||
USE test_01155_ordinary;
|
||||
|
||||
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);
|
||||
|
||||
SET enable_analyzer=0;
|
||||
SELECT _table FROM merge('test_01155_ordinary', '') ORDER BY _table, s;
|
||||
|
||||
DROP TABLE src;
|
||||
DROP TABLE dist;
|
||||
DROP DATABASE test_01155_ordinary;
|
Loading…
Reference in New Issue
Block a user