mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Reduce table size in similar tests
This commit is contained in:
parent
2b369cccdd
commit
cec8a5d52b
@ -1,3 +1,3 @@
|
||||
1000000 Array(UInt16)
|
||||
1000000 String
|
||||
1000000 UInt64
|
||||
200000 Array(UInt16)
|
||||
200000 String
|
||||
200000 UInt64
|
||||
|
@ -5,9 +5,9 @@ set allow_experimental_dynamic_type = 1;
|
||||
drop table if exists test;
|
||||
create table test (id UInt64, d Dynamic) engine=MergeTree order by id settings min_rows_for_wide_part=1000000000, min_bytes_for_wide_part=10000000000, lock_acquire_timeout_for_background_operations=600;
|
||||
system stop merges test;
|
||||
insert into test select number, number from numbers(1000000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(1000000, 1000000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(2000000, 1000000);
|
||||
insert into test select number, number from numbers(200000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(200000, 200000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(400000, 200000);
|
||||
system start merges test;
|
||||
optimize table test final;
|
||||
select count(), dynamicType(d) from test group by dynamicType(d) order by count(), dynamicType(d);
|
||||
|
@ -1,3 +1,3 @@
|
||||
1000000 Array(UInt16)
|
||||
1000000 String
|
||||
1000000 UInt64
|
||||
200000 Array(UInt16)
|
||||
200000 String
|
||||
200000 UInt64
|
||||
|
@ -5,9 +5,9 @@ set allow_experimental_dynamic_type = 1;
|
||||
drop table if exists test;
|
||||
create table test (id UInt64, d Dynamic) engine=MergeTree order by id settings min_rows_for_wide_part=1, min_bytes_for_wide_part=1, lock_acquire_timeout_for_background_operations=600;
|
||||
system stop merges test;
|
||||
insert into test select number, number from numbers(1000000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(1000000, 1000000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(2000000, 1000000);
|
||||
insert into test select number, number from numbers(200000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(200000, 200000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(400000, 200000);
|
||||
system start merges test;
|
||||
optimize table test final;
|
||||
select count(), dynamicType(d) from test group by dynamicType(d) order by count(), dynamicType(d);
|
||||
|
@ -1,3 +1,3 @@
|
||||
1000000 Array(UInt16)
|
||||
1000000 String
|
||||
1000000 UInt64
|
||||
200000 Array(UInt16)
|
||||
200000 String
|
||||
200000 UInt64
|
||||
|
@ -5,9 +5,9 @@ set allow_experimental_dynamic_type = 1;
|
||||
drop table if exists test;
|
||||
create table test (id UInt64, d Dynamic) engine=MergeTree order by id settings min_rows_for_wide_part=1000000000, min_bytes_for_wide_part=10000000000, vertical_merge_algorithm_min_rows_to_activate=1, vertical_merge_algorithm_min_columns_to_activate=1, lock_acquire_timeout_for_background_operations=600;
|
||||
system stop merges test;
|
||||
insert into test select number, number from numbers(1000000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(1000000, 1000000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(2000000, 1000000);
|
||||
insert into test select number, number from numbers(200000);
|
||||
insert into test select number, 'str_' || toString(number) from numbers(200000, 200000);
|
||||
insert into test select number, range(number % 10 + 1) from numbers(400000, 200000);
|
||||
system start merges test;
|
||||
optimize table test final;
|
||||
select count(), dynamicType(d) from test group by dynamicType(d) order by count(), dynamicType(d);
|
||||
|
Loading…
Reference in New Issue
Block a user