Merge pull request #67797 from Avogar/reduce-dynamic-merges-test

Reduce table size in 03037_dynamic_merges_2* tests
This commit is contained in:
Alexey Milovidov 2024-08-05 17:01:45 +00:00 committed by GitHub
commit df0bc58b82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 24 additions and 24 deletions

View File

@ -1,3 +1,3 @@
1000000 Array(UInt16)
1000000 String
1000000 UInt64
200000 Array(UInt16)
200000 String
200000 UInt64

View File

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

View File

@ -1,3 +1,3 @@
1000000 Array(UInt16)
1000000 String
1000000 UInt64
200000 Array(UInt16)
200000 String
200000 UInt64

View File

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

View File

@ -1,3 +1,3 @@
1000000 Array(UInt16)
1000000 String
1000000 UInt64
200000 Array(UInt16)
200000 String
200000 UInt64

View File

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

View File

@ -1,3 +1,3 @@
1000000 Array(UInt16)
1000000 String
1000000 UInt64
200000 Array(UInt16)
200000 String
200000 UInt64

View File

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