Update test

This commit is contained in:
kssenii 2021-10-24 20:48:04 +00:00
parent 13a2a3d307
commit cf775ddc3a
2 changed files with 2 additions and 9 deletions

View File

@ -4,8 +4,7 @@
0 9998 5000
1
0
0
0
0 9999
1
0 9999
1 9999
3

View File

@ -16,29 +16,23 @@ select min(i) from d where 1 = _partition_value.1;
drop table d;
drop table if exists no_final_mark;
drop table if exists has_final_mark;
drop table if exists mixed_final_mark;
create table no_final_mark (i int, j int) engine MergeTree partition by i % 2 order by j settings index_granularity = 10, write_final_mark = 0;
create table has_final_mark (i int, j int) engine MergeTree partition by i % 2 order by j settings index_granularity = 10, write_final_mark = 1;
create table mixed_final_mark (i int, j int) engine MergeTree partition by i % 2 order by j settings index_granularity = 10;
set max_rows_to_read = 100000;
insert into no_final_mark select number, number from numbers(10000);
insert into has_final_mark select number, number from numbers(10000);
alter table mixed_final_mark attach partition 0 from no_final_mark;
alter table mixed_final_mark attach partition 1 from has_final_mark;
set max_rows_to_read = 2;
select min(j) from no_final_mark;
select min(j) from has_final_mark;
select min(j) from mixed_final_mark;
-- select min(j), max(j) from no_final_mark; -- {serverError TOO_MANY_ROWS}
select min(j), max(j) from has_final_mark;
set max_rows_to_read = 5001; -- one normal part 5000 + one minmax_count_projection part 1