This commit is contained in:
jsc0218 2024-10-31 02:01:23 +00:00
parent e3890a9de1
commit 4e2693bb46
3 changed files with 25 additions and 3 deletions

View File

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

View File

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