mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
fix/adjust tests in integration/test_partition
This commit is contained in:
parent
dbe89cd5d8
commit
2cd55bc398
@ -183,7 +183,8 @@ def attach_check_all_parts_table(started_cluster):
|
||||
q("SYSTEM STOP MERGES")
|
||||
q("DROP TABLE IF EXISTS test.attach_partition")
|
||||
q(
|
||||
"CREATE TABLE test.attach_partition (n UInt64) ENGINE = MergeTree() PARTITION BY intDiv(n, 8) ORDER BY n SETTINGS compress_marks=false, compress_primary_key=false"
|
||||
"CREATE TABLE test.attach_partition (n UInt64) ENGINE = MergeTree() PARTITION BY intDiv(n, 8) ORDER BY n "
|
||||
"SETTINGS compress_marks=false, compress_primary_key=false, old_parts_lifetime=0"
|
||||
)
|
||||
q(
|
||||
"INSERT INTO test.attach_partition SELECT number FROM system.numbers WHERE number % 2 = 0 LIMIT 8"
|
||||
@ -462,7 +463,8 @@ def test_system_detached_parts(drop_detached_parts_table):
|
||||
|
||||
def test_detached_part_dir_exists(started_cluster):
|
||||
q(
|
||||
"create table detached_part_dir_exists (n int) engine=MergeTree order by n SETTINGS compress_marks=false, compress_primary_key=false"
|
||||
"create table detached_part_dir_exists (n int) engine=MergeTree order by n "
|
||||
"SETTINGS compress_marks=false, compress_primary_key=false, old_parts_lifetime=0"
|
||||
)
|
||||
q("insert into detached_part_dir_exists select 1") # will create all_1_1_0
|
||||
q(
|
||||
|
Loading…
Reference in New Issue
Block a user