mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #67797 from Avogar/reduce-dynamic-merges-test
Reduce table size in 03037_dynamic_merges_2* tests
This commit is contained in:
commit
df0bc58b82
@ -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);
|
||||
|
@ -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, 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